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 |
Tags
- Human interface guide
- 리펙터링
- Clean Code
- map
- rxswift
- 리팩토링
- tableView
- ios
- Protocol
- Refactoring
- SWIFT
- uitableview
- MVVM
- Xcode
- collectionview
- HIG
- clean architecture
- RxCocoa
- 리펙토링
- 애니메이션
- UITextView
- swiftUI
- ribs
- Observable
- 클린 코드
- combine
- swift documentation
- UICollectionView
- 스위프트
- uiscrollview
Archives
- Today
- Total
목록Decoder() (1)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/PHmm2/btrqMjOqj9S/Wq7xVcPGBn24RLV970xzik/img.png)
알아야하는 개념 - CodingKeys란? 인코딩과 디코딩할때 사용하는 key값 Codable 타입은 CodingKeys라는 nested type인 CodingKeys를 정의해야 하는데, 이 CodingKeys는 CodingKey타입을 준수 CodingKey에 case문으로 key값들을 정의하고 Person이라는 구조체를 json으로 변경할때 이 값을 내부적으로 이용 struct Person: Codable { enum CodingKeys: String, CodingKey { case name case age } var name: String var age: Int } KeyDocodingStrategy json의 key값을 coding keys로 어떻게 decoding할 것인지 정의하는 프로퍼티 Cod..
iOS 응용 (swift)
2022. 1. 16. 15:14