Created
May 4, 2018 03:17
-
-
Save akdsouza/2bb61894c83edc413085e2f77b73ff1d to your computer and use it in GitHub Desktop.
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
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
INPreferences.requestSiriAuthorization { (status) in | |
if status == .authorized { | |
print("Siri access allowed") | |
} else { | |
print("Siri access denied") | |
} | |
} | |
DataManager.sharedManager.saveContacts(contacts: [["name": "Thor", "number": "1800-THUNDER"], ["name": "Tony Stark", "number": "1800-IRONMAN"], ["name": "Bruce Banner", "number": "1800-HULKSMASH"], ["name": "Bruce Wayne", "number": "1800-BATMAN"]]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment