Latest 0.5.0
Homepage https://github.com/muukii/Realm-EasyBackground
License MIT
Platforms ios 8.0, requires ARC
Dependencies RealmSwift
Authors

CI Status Version License Platform

Usage


import Realm_EasyBackground

let realm = try! Realm()

realm.writeBackground { realm in

    // Write on background thread
    let person = Person()
    try person.update(json)
    realm.add(person, update: true)
}

import Realm_EasyBackground

let realm = try! Realm()

realm.writeBackground ({ realm in

    // Write on background thread
    let person = Person()
    try person.update(json)
    realm.add(person, update: true)

},
completion { (error: ErrorType?) in

    // Callback on main thread
})

Requirements

Installation

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

pod "Realm-EasyBackground"

Author

muukii, [email protected]

License

Realm-EasyBackground is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Realm-EasyBackground",
    "version": "0.5.0",
    "summary": "Extensions for Realm",
    "description": "Extensions for Realm (To write in background thread easily.)",
    "homepage": "https://github.com/muukii/Realm-EasyBackground",
    "license": "MIT",
    "authors": {
        "muukii": "[email protected]"
    },
    "source": {
        "git": "https://github.com/muukii/Realm-EasyBackground.git",
        "tag": "0.5.0"
    },
    "social_media_url": "https://twitter.com/muukii0803",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "Realm-EasyBackground": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "RealmSwift": [
            "~> 1.0"
        ]
    }
}

Pin It on Pinterest

Share This