일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Animation
- objective-c
- 독서
- 책
- 애니메이션
- 스위프트
- swiftUI
- wwdc
- RX
- Deep learning
- stanford SwiftUI
- 문자열
- 책 추천
- ios
- 딥러닝
- rxswift
- 책 후기
- iOS SwiftUI
- 머신러닝
- leetcode
- SWIFT
- swift5
- ReactiveX
- 스위프트UI
- 알고리즘
- string
- Xcode
- Algorithm
- objc
- ARC
Archives
- Today
- Total
목록Codable (1)
THIS IS ELLIE
동일한 키 다른 타입 디코딩하기
Landmark구조체가 있다고 가정해본다. struct Landmark { var name: String var foundingYear: Int } Landmark에 Codable프로토콜을 채택한다. Codable프로토콜(Decodable, Encodable)을 채택하면 따로 선언하지 않아도 Codable메서드인 init(from: ) 및 encode(to :)를 지원한다. struct Landmark: Codable { var name: String var foundingYear: Int // Landmark now supports the Codable methods init(from:) and encode(to:), // even though they aren't written as part of i..
낑낑/Troubleshooting
2021. 3. 30. 18:25