Am very green to Realm, and just installed it, as well as typed the tutorials demo to make sure it was working as needed.
However, when trying to define an Int for my db struct:
class MasterList : Object {
@objc dynamo var sheetNo : Int?
}
I get the following error:
Property cannot be marked @objc because its type cannot be represented in Objective-C
However, replacing the declaration with:
@Persisted var coll : Int?
Removes the error. I haven’t run all the code yet, so not sure if @Persisted will give me a headache further down. But figured I’d ask now, what the difference is in this case.
Thank you