Search code examples
iosswiftrealm

Multiple Realms with multiple data models


Is it possible to create two different realms each one using a different data model?

For example: defaultRealm would use the client class as model and myRealm would use products class as model


Solution

  • Having a different set of Object subclasses in each Realm isn't yet supported, but it will come with https://github.com/realm/realm-cocoa/issues/1584.