The issue is the followup question from the post on SO;
have you tried modifying an existing synced Realm to use this configuration?
either doing this
let config = SyncUser.current!.configuration(realmURL: url, fullSynchronization: false, enableSSLValidation: true, urlPrefix: nil)
let config = SyncUser.current!.configuration()
Then trying to access realm does not sync. Maybe the missing piece is how to define what objects sync. It used to be like this
let realmConfig = Realm.Configuration(syncConfiguration: config, objectTypes:[MyObject.self])
let realm = try! Realm(configuration: self.realmConfig)
From the current documentation here
Realms on the Realm Object Server are using the same Realm.Configuration used to create standalone Realms, but with the syncConfiguration property on their Realm.Configuration set to a SyncConfiguration value. Synchronized realms are located by URLs.
// Create the configuration
let syncServerURL = URL(string: “realms://myinstance.cloud.realm.io/~/userRealm”)!
let config = user.configuration(realmURL: syncServerURL);
// Open the remote Realm
let realm = try! Realm(configuration: config)
// Any changes made to this Realm will be synced across all devices!
however SyncConfiguration is depreciated.
This is very circular.