Latest 0.5.2
Homepage https://github.com/BellAppLab/MultiRealm
License MIT
Platforms ios 8.0, osx 10.10, requires ARC
Dependencies RealmSwift, BLFixedThreadOperations
Frameworks Foundation
Authors

[![CI Status](http://img.shields.io/travis/Bell App Lab/MultiRealm.svg?style=flat)](https://travis-ci.org/Bell App Lab/MultiRealm)
Version
License
Platform

Usage

Instead of this:

import RealmSwift

let realm = try! Realm()

Do this:

import MultiRealm
import RealmSwift

let multiRealm = MultiRealm(.Background) {
    let realm = try! Realm()
    return 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

CocoaPods

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.

Latest podspec

{
    "name": "MultiRealm",
    "version": "0.5.2",
    "summary": "Making it easier to work with Realm on the background.",
    "homepage": "https://github.com/BellAppLab/MultiRealm",
    "license": "MIT",
    "authors": {
        "Bell App Lab": "[email protected]"
    },
    "source": {
        "git": "https://github.com/BellAppLab/MultiRealm.git",
        "tag": "0.5.2"
    },
    "social_media_url": "https://twitter.com/BellAppLab",
    "platforms": {
        "ios": "8.0",
        "osx": "10.10"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "frameworks": "Foundation",
    "dependencies": {
        "RealmSwift": [],
        "BLFixedThreadOperations": []
    }
}

Pin It on Pinterest

Share This