Skip to content

Instantly share code, notes, and snippets.

@insidegui
Created March 5, 2017 20:18
Show Gist options
  • Save insidegui/f0140a3255a6a033d84cf4417998b6f9 to your computer and use it in GitHub Desktop.
Save insidegui/f0140a3255a6a033d84cf4417998b6f9 to your computer and use it in GitHub Desktop.
CKContainer.default().fetchUserRecordID { recordID, error in
guard let recordID = recordID, error == nil else {
// error handling magic
return
}
print("Got user record ID \(recordID.recordName).")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment