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
- 리펙터링
- combine
- tableView
- swift documentation
- Refactoring
- RxCocoa
- UITextView
- Clean Code
- ios
- collectionview
- Protocol
- SWIFT
- 애니메이션
- Xcode
- swiftUI
- 클린 코드
- Observable
- ribs
- 리팩토링
- map
- uiscrollview
- UICollectionView
- uitableview
- 스위프트
- MVVM
- HIG
- rxswift
- 리펙토링
- Human interface guide
- clean architecture
Archives
- Today
- Total
목록키 패스 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] KeyPath, WritableKeyPath, ReferenceWritableKeyPath, DynamicMemberLookup 개념
KeyPath 특정 속성에 대한 path정보를 가지고 있는 key값 (KeyPath 인스턴스를 통해 해당 값에 접근이 가능) // KeyPath 문법: `\`키워드 + 유형 + 프로퍼티 이름 let nameKeyPath: KeyPath = \Person.name let person = Person(age: 12, name: "jake") print(person[keyPath: nameKeyPath]) // jake KeyPath 활용 - RxSwift의 Observable 구독 할때 특정 property를 가져오기 위해 map에서 사용 (간결성 향상) struct Person { var age: Int var name: String } var personObservable: Observable { Obs..
iOS 기본 (swift)
2022. 1. 9. 21:44