func test() async { await withTaskGroup(of: Int.self) { taskGroup in [3,1,2].forEach { i in taskGroup.addTask { print("시작 \(i)") try? await Task.sleep(for: .seconds(i)) return i } } for await element in taskGroup { print("완료 \(element)") } } print("모두 완료")}Task { ..
SwiftUI 버전 보러가기 import UIKit// 팝오버class ViewController: UIViewController { let button = UIButton(type: .system) override func viewDidLoad() { super.viewDidLoad() button.setTitle("Popover", for: .normal) let action = UIAction(handler: showPopover) button.addAction(action, for: .touchUpInside) view.addSubview(button) b..
let numbers = [1, 2, 3, 4, 5] //앞에서 2개 가져오기 print(numbers.prefix(2)) // Prints "[1, 2]" //최대 개수 넘어도 상관없음 print(numbers.prefix(10)) // Prints "[1, 2, 3, 4, 5]" //뒤에서 2개 가져오기 print(numbers.suffix(2)) // Prints "[4, 5]" //최대 개수 넘어도 상관없음 print(numbers.suffix(10)) // Prints "[1, 2, 3, 4, 5]" iOS Swift Xcode
- Total
- Today
- Yesterday
- SKPayment
- 다국어
- TabBar
- localizable
- 프로그레스
- swiftUI
- localizing
- 인디케이터
- 현지화
- TabView
- Reject
- 엑스코드
- 아이오에스
- ios
- 리젝
- AppStore
- 테이블뷰
- permission
- indicator
- 로컬라이징
- Infinite Carousel
- 스위프트
- picker
- Xcode
- presentationcompactadaptation
- Language
- Authorization
- 심사
- SWIFT
- custom segment
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |