Created
November 27, 2015 09:07
-
-
Save skreutzberger/88869c8424215a2d0a8a to your computer and use it in GitHub Desktop.
use iCloudUserIDAsync
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
import CloudKit | |
iCloudUserIDAsync() { | |
recordID, error in | |
if let userID = recordID?.recordName { | |
print("received iCloudID \(userID)") | |
} else { | |
print("Fetched iCloudID was nil") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment