TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | May 2016 |
SPMSupports SPM | ✗ |
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
})
Realm-EasyBackground is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Realm-EasyBackground"
muukii, [email protected]
Realm-EasyBackground is available under the MIT license. See the LICENSE file for more info.