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 | 31 |
Tags
- JPA
- mac
- IOS
- Python
- Session
- SwiftUI
- UIButton
- Realm
- 한글
- stack
- 개발자
- FLUTTER
- Archive
- Git
- window
- Firebase
- error
- rxswift
- Code
- Apple
- Swift
- 웹뷰
- Xcode
- Notification
- MacOS
- view
- appstore
- github
- darkmode
- iOS16
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 < 1 { migration.enumerateObjects(ofType: Person.className()) { oldObject, newObject in guard let oldObject = oldObject e..
iOS, Swift
2021. 11. 14. 20:41