Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- mac
- Python
- Git
- stack
- JPA
- github
- Session
- Archive
- Notification
- SwiftUI
- error
- darkmode
- view
- UIButton
- 개발자
- 한글
- iOS16
- Realm
- rxswift
- window
- 웹뷰
- Apple
- FLUTTER
- Firebase
- Code
- appstore
- MacOS
- Swift
- IOS
- Xcode
Archives
- Today
- Total
목록associatedType (1)
EEYatHo 앱 깎는 이야기
Swift ) Swift 5.7 변경사항 - EEYatHo iOS
if let 약식 구문 등장 let foo: String? = "hello world" // if let foo = foo { if let foo { print(foo) } any 확장 any 키워드를 사용한 모듈을 만들 때, type erase 로 type relationship 이 제거되어 associatedType 을 디스패치하지 못하던 상황을 개선 => any 타입을 unboxing 하여 some 타입으로 컨버팅 할 수 있는 기능을 컴파일러에 추가 func feed(_ animal: some Animal) { let food = type(of: animal).Feed.make() // associatedType 접근 animal.eat(food) } func feedAll(_ animals: [a..
iOS, Swift/Swift Theory
2023. 2. 6. 18:15