Is it possible to use an Enum as a property for my model? I currently have a class like this:
class Checkin: RLMObject {
dynamic var id: Int = 0
dynamic
Diogo T's solution worked before recent updates of RealmSwift. Eventually we now have to conform to RealmEnum protocol to be able to be a managed property of Realm Object.
@objc enum MyEnum: Int, RealmEnum {
...
}
Or add below in some place:
extension MyEnum: RealmEnum { }
RealmSwift documentation for it