token"), server: URL(string: "http://realm.example.com:9080")!) { user, error in if let user = user { // Opening a remote Realm let realmURL = URL(string: "realm://realm.example.com:9080/~/userRealm")! let config = Realm.Configuration(syncConfiguration: (user, realmURL)) Realm.Configuration.defaultConfiguration = config let realm = try! Realm() // Any changes made to this Realm will be synced across all devices! } else if let error = error { // handle error } } Ҿ༻ (C) fromkk 16