Skip to content

Instantly share code, notes, and snippets.

@maltebucksch
Created June 26, 2018 08:04
Show Gist options
  • Save maltebucksch/1388939caaa789a6b5a2abedc3e30f5c to your computer and use it in GitHub Desktop.
Save maltebucksch/1388939caaa789a6b5a2abedc3e30f5c to your computer and use it in GitHub Desktop.
Realm Sync Service: AppDelegate Whole
var syncService: SyncService!
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
syncService = SyncService(modelTypes: [User.self])
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment