
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
- 로컬라이징
- 다국어
- 심사
- TabBar
- presentationcompactadaptation
- Reject
- Xcode
- 프로그레스
- 아이오에스
- Language
- TabView
- indicator
- swiftUI
- custom segment
- SKPayment
- 스위프트
- 리젝
- 인디케이터
- permission
- AppStore
- ios
- SKProductsRequestDelegate
- picker
- 테이블뷰
- Authorization
- localizing
- 엑스코드
- 현지화
- localizable
- SWIFT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |