Переглядів 9,924
In this iOS tutorial you will learn how to read and write data with Realm Database for SwiftUI. Realm is a powerful solution to persist data for iOS. We will build an example project in SwiftUI with realm and use the newest updates like @ObservedRealmObject and @ObservedResults, which make it soo much better.
Overview
00:00 what you will build
03:14 project setup , loading Realm packages
04:16 define data models
09:23 views with @ObservedRealmObject
20:47 delete crash
28:09 making the SwiftUI preview work for realm
36:17 @ObservedResults vs RealmSwift.List for sorting and filtering
49:06 wrap up
Official tutorials from Realm:
docs.mongodb.com/realm/sdk/sw...
docs.mongodb.com/realm/sdk/sw...
⬇️ Project files: github.com/gahntpo/RealmSwift...
My earlier tutorial about realm: • How to use realm in Sw...
If you liked what you learned and you want to see more, check out one of my courses!
👨💻 my SwiftUI course school.swiftyplace.com/course...
👨💻 my Core Data and SwiftUI course school.swiftyplace.com/course...
👩🏻💻 Combine course
school.swiftyplace.com/course...
#SwiftUI #Realm #iOSDevelopment