CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

MultiRealm 0.5.2

MultiRealm 0.5.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2016
SPMSupports SPM

Maintained by Bell App Lab.



 
Depends on:
RealmSwift>= 0
BLFixedThreadOperations>= 0
 

MultiRealm

Usage

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.

Requirements

iOS 8+ OSX 10.10+ RealmSwift

Installation

MultiRealm is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MultiRealm"

Author

Bell App Lab, [email protected]

License

MultiRealm is available under the MIT license. See the LICENSE file for more info.