I have seen this post Optional dynamic properties in Swift but I don't want to have to wrap up the class in an NSObject
. This just is concerning the Realm database I don't have to have nil
properties but it would be a nice way I think to model my database. In the Realm documentation which can be found here https://realm.io/docs/swift/latest/ it says optionals are supported. Here is my
Code
dynamic var complete: Bool? = nil
and here is my
Error
Property cannot be marked dynamic because its type cannot be represented in Objective-C
I know this is the same code and error as the post above but I am just curious if the Realm documentation says it supports it do they have another work around?