Realm-EasyBackground 0.5.0

Realm-EasyBackground 0.5.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2016
SPMSupports SPM

Maintained by muukii, muukii.



Realm-EasyBackground

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.