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
- Human interface guide
- Refactoring
- combine
- swiftUI
- UITextView
- map
- Xcode
- HIG
- Clean Code
- 리팩토링
- 클린 코드
- swift documentation
- ios
- UICollectionView
- 애니메이션
- collectionview
- uitableview
- Observable
- uiscrollview
- MVVM
- 스위프트
- 리펙터링
- clean architecture
- SWIFT
- tableView
- 리펙토링
- rxswift
- ribs
- RxCocoa
- Protocol
Archives
- Today
- Total
목록2022/11/19 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - Swift] KVC, KeyPath, DynamicMemberLookup 개념
KVC와 KeyPath KVC(Key - Value coding) - 객체의 값을 직접 가져오지 않고 KeyPath를 이용해서 간접적으로 데이터를 가져오거나 사용 (key는 string) KeyPath 값에 대한 참조가 아닌, 프로퍼티를 참조 struct Person { var name: String } let person = Person(name: "jake") person.name // 값을 참조 person[keyPath: \.name] // 프로퍼티를 참조 KeyPath 종류 AntyKeyPath: 타입이 지워진 KeyPath PartialKeyPath: 부분적으로 타입이 지워진 KeyPath KeyPath: 읽기 전용 WriatableKeyPath: 읽기, 쓰기 가능 ReferenceWritab..
iOS 응용 (swift)
2022. 11. 19. 22:42