Last active
November 4, 2020 21:48
-
-
Save rckrueger/b4044e4a9e2370b8a270df1195c1689b to your computer and use it in GitHub Desktop.
Realm Open
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Realm.asyncOpen(configuration: user.configuration(partitionValue: uid), | |
callback: { result in | |
switch result { | |
case .success(let realm): | |
self.userRealm = realm | |
case .failure(let error): | |
fatalError("Failed to open realm: \(error)") | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment