Created
March 5, 2017 20:33
-
-
Save insidegui/63ad1684f37b2dc3701029d17d625313 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
CKContainer().default().discoverAllIdentities { identities, error in | |
guard let identities = identities, error == nil else { | |
// awesome error handling | |
return | |
} | |
print("User has \(identities.count) contact(s) using the app:") | |
print("\(identities)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment