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
- rxswift
- 스위프트
- swift documentation
- collectionview
- tableView
- uitableview
- UITextView
- 리펙토링
- 클린 코드
- UICollectionView
- map
- 애니메이션
- MVVM
- uiscrollview
- Refactoring
- Protocol
- 리팩토링
- HIG
- Clean Code
- ribs
- swiftUI
- combine
- ios
- SWIFT
- clean architecture
- RxCocoa
- 리펙터링
- Observable
- Human interface guide
- Xcode
Archives
- Today
- Total
목록디코더 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] Decoder(), KeyDecodingStrategy, DateDecodingStrategy 사용 방법 (Date 여러 형태 처리)
알아야하는 개념 - 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