Created
March 5, 2017 20:22
-
-
Save insidegui/42787a138c7213dd18e23b0ad633150c to your computer and use it in GitHub Desktop.
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
// `recordID` is the record ID returned from CKContainer.fetchUserRecordID | |
CKContainer.default().publicCloudDatabase.fetch(withRecordID: recordID) { record, error in | |
guard let record = record, error == nil else { | |
// show off your error handling skills | |
return | |
} | |
print("The user record is: \(record)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment