Skip to content

Instantly share code, notes, and snippets.

@akdsouza
Created May 4, 2018 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akdsouza/2bb61894c83edc413085e2f77b73ff1d to your computer and use it in GitHub Desktop.
Save akdsouza/2bb61894c83edc413085e2f77b73ff1d to your computer and use it in GitHub Desktop.
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