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
- MacOS
- Code
- IOS
- Session
- Swift
- Git
- Apple
- geofencing
- shorebird
- 개발자
- FLUTTER
- Firebase
- iOS16
- appstore
- SwiftUI
- 이미지
- github
- darkmode
- Xcode
- 웹뷰
- UIButton
- Notification
- rxswift
- error
- 한글
- JPA
- Archive
- mac
- Realm
- window
Archives
- Today
- Total
목록마이그레이션 (1)
EEYatHo 앱 깎는 이야기
Swift ) Realm List Migration - EEYatHo iOS
일반적인 값들의 마이그레이션 방법 Realm 클래스를 마이그레이션 할 때, oldObject의 값에 접근하기 위해서는,아래처럼 oldObject의 string 키값으로 접근하는 것이 일반적일텐데,해당 방법으로는 List 값에는 접근이 안된다. ( firstName과 lastName을 더해서 fullName이라는 값을 추가하는. List가 필요없는 케이스는 잘 됨. )migrationBlock: { migration, oldSchemaVersion in if oldSchemaVersion import RealmSwift// new Personclass Person: Object { @objc dynamic var firstName: String = "" @objc dynamic var l..
iOS, Swift
2021. 11. 14. 20:41