I read about the Converting Local Realms to Synced Realms section in docs and I found this nice recipe for Objective-C but I can't implement it on an app fully implemented in Swift.
var syncConfig = Realm.Configuration()
syncConfig.syncConfiguration = SyncConfiguration(user: user, realmURL: server.appendingPathComponent("/~/app1"))
syncConfig.customSchema = localRealm.schema
~~~~~~~~~~~~~~~~~~~~~~~
^ 'customSchema' is inaccessible due to 'private' protection level
I even added import Realm.Private but didn't solve the problem.
Should I explicitly use Objective-C for this operation?