/SyncEngine

Sync between iCloud and Realm

Primary LanguageSwiftMIT LicenseMIT

SyncEngine

Sync between iCloud and Realm

Feature

  • Sync betweens different device
  • Share
  • Offline
  • Resolve conflict
  • Multi table
  • CKAsset
  • Stable API
  • Documentation
  • Same device different iCloud account
  • Background long task

Requirement

  • iOS 10.0
  • swift 4.0
  • Xcode 9.0

Usage

  1. model
@objc(SimpleNote)
class SimpleNote: SyncBaseModel {
    @objc dynamic var title: String = ""
}
  1. AppDelegate
application.registerForRemoteNotifications()

syncEngine.register(models: [SimpleNote.self])
syncEngine.start()
  1. Sync
syncEngine.sync()

Carthage

github "purkylin/SyncEngine"