I am using realm in our iOS and Android app. For some reason i want to rename one of my realm object.
Initially we name the object Demo
and now I want to change it to RealmDemo
In android we achieved it by using @RealmClass annotation
@RealmClass(name = "Demo")
open class RealmDemo : RealmObject() {
}
On iOS side i am not sure how exactly i can do similar as i did in android.
class RealmDemo: Object {
override static func className() -> String {
"Demo"
}
}
I tried above ^ but getting following error "Terminating app due to uncaught exception 'RLMException', reason: 'Object type 'Demo' not managed by the Realm'"