Skip to content

Instantly share code, notes, and snippets.

@olbrichj
Last active June 8, 2018 05:36
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 olbrichj/90acb8befbd8e61c4ef76d4c5d26b444 to your computer and use it in GitHub Desktop.
Save olbrichj/90acb8befbd8e61c4ef76d4c5d26b444 to your computer and use it in GitHub Desktop.
let danceIntent = DanceIntent()
danceIntent.<property> = //set here your configuration for this intent
let interaction = INInteraction(intent: danceIntent, response: nil)
interaction.donate { (error) in
if error != nil {
if let error = error as NSError? {
print("error")
}
} else {
print("success")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment