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 |
Tags
- github
- Xcode
- IOS
- geofencing
- 개발자
- rxswift
- 한글
- MacOS
- Firebase
- iOS16
- 웹뷰
- error
- Swift
- UIButton
- darkmode
- Git
- Session
- 맥
- 이미지
- mac
- Code
- Archive
- shorebird
- JPA
- appstore
- FLUTTER
- window
- Apple
- SwiftUI
- Realm
Archives
- Today
- Total
목록any (1)
EEYatHo 앱 깎는 이야기
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