TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2016 |
SPMSupports SPM | ✗ |
Maintained by Bell App Lab.
Depends on: | |
RealmSwift | >= 0 |
BLFixedThreadOperations | >= 0 |
Instead of this:
let realm = try! Realm()
Do this:
let multiRealm = MultiRealm(.Background) {
let realm = try! Realm()
multiRealm.set(realm)
}
And then, when you need to perform operations with that Realm:
multiRealm.performBlock {
//save your objects
try! multiRealm.realm.write() { ... }
}
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 8+ OSX 10.10+ RealmSwift
MultiRealm is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MultiRealm"
Bell App Lab, [email protected]
MultiRealm is available under the MIT license. See the LICENSE file for more info.