Using enum as property of Realm model

You should override your kindEnum‘s setter and getter for this case: enum Kind: String { case CheckedIn case EnRoute case DroppedOff } class Checkin: Object { @objc dynamic var id = 0 var kind = Kind.CheckedIn.rawValue var kindEnum: Kind { get { return Kind(rawValue: kind)! } set { kind = newValue.rawValue } } }

Proper Realm usage patterns/best practices?

(Disclaimer: I work for Realm. I’ve left Realm now, but I’m still happy to help!) 🙂 Thanks a lot! It’s great to hear you’re enjoying Realm! Multiple Realm Instances – You don’t need to worry about this at all! A Realm file object is created upon the first-time instantiation on each thread, and that same … Read more

How do I view my Realm file in the Realm Browser?

Currently the Realm Browser doesn’t support accessing databases directly on the device, so you need to copy the database from the emulator/phone to view it. That can be done by using ADB: adb pull /data/data/<packagename>/files/ . That command will pull all Realm files created using Realm.getInstance(new RealmConfiguration.Builder().build()) . The default database is called default.realm. Note … Read more

How to find my realm file?

Finding a Realm File For Android How to view my Realm file in the Realm Browser? For iOS If your App is on Device Make sure that your device is connected and go to the devices window in the Xcode menu Window > Devices (⌘⇧2). There you will be able to choose your device and … Read more

tech