Realm SyncConfiguration.Builder deprecated
You need to log in first to have a valid SyncUser.
SyncUser user = SyncUser.logIn(SyncCredentials.usernamePassword(username, password, true), Constants.AUTH_URL);
SyncConfiguration config = user.createConfiguration(Constants.USER_REALM).build();
So I'm guessing the following would work:
SyncUser syncUser = SyncUser.current();
if (syncUser == null) {
SyncCredentials myCredentials = SyncCredentials.usernamePassword("userid", "pass", false);
syncUser = SyncUser.logIn(myCredentials, AUTH_URL);
}
SyncConfiguration configuration = syncUser.createConfiguration(REALM_BASE_URL + "/~/myDB").build();
Note that this defaults to using partial synchronization
, so if you want to retain previous behavior, you might have to call .fullSynchronization().build()
.
What method should I use instead of a deprecated 'resumeAnimation(forKey:)'?
You can retrieve an SCNAnimationPlayer
using animationPlayer(forKey:)
and then set its paused
property to true
.
Related Topics
Swift: Lazily Encapsulating Chains of Map, Filter, Flatmap
Swift and Objectmapper: Nsdate with Min Value
What Is the Markup Format for Documentation on the Parameters of a Block in Swift
How Does Let X Where X.Hassuffix("Pepper") Work
Com.Apple.Itunes Aedeterminepermissiontoautomatetarget Is Always Return -600
Changing Nav Bar Item Programmatically in Swift
How to Test an Optionset with a Switch Statement
Testing Protocol Conformance with Associated Types
Nspopover to Start in a Detached State
Convert to Latest Swift Syntax' Breaks the Build Even When There Are No Changes
How to Integrate Uisearchcontroller with Swiftui
How to Set Interactive Push Notifications on iOS8
Swiftui MACos Commands (Menu Bar) and View
How to Retrieve All Contacts Using Cncontact.Predicateforcontacts
How Do We Implement Wait/Notify in Swift
Firebase Retrieve Image from Url Save with Firebase Database