Is it possible to save an object in both NSUserDefaults and Realm (Swift) ?
I have found a problem in creating my Model since NSUserDefaults require the inheritance of NSObject
and Realm requires the inheritance of Object
.
Doing so , raised this error
Multiple inheritance from classes 'Object' and 'NSObject'