Created
August 30, 2019 17:01
-
-
Save vinthewrench/709f6e717a5becc98fe48ea4d8b30748 to your computer and use it in GitHub Desktop.
Accessing a ZDCLocalUser object
This file contains hidden or 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
var localUser: ZDCLocalUser? = nil | |
ZDCManager.uiDatabaseConnection() .read { (transaction) in | |
localUser = transaction.object(forKey: localUserID!, | |
inCollection: kZDCCollection_Users) as? ZDCLocalUser | |
} | |
if let localUser = localUser { | |
print(user.displayName) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment