Skip to content

Instantly share code, notes, and snippets.

@skreutzberger
Created November 27, 2015 09:07
Show Gist options
  • Save skreutzberger/88869c8424215a2d0a8a to your computer and use it in GitHub Desktop.
Save skreutzberger/88869c8424215a2d0a8a to your computer and use it in GitHub Desktop.
use iCloudUserIDAsync
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