Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created September 3, 2018 07:00
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 fitomad/123d2f386c541d31234c284e0d3fee4c to your computer and use it in GitHub Desktop.
Save fitomad/123d2f386c541d31234c284e0d3fee4c to your computer and use it in GitHub Desktop.
func responseController(_ controller: ResponseRideViewController, didCancelSiriDonation identifier: String) -> Void {
INInteraction.delete(with: [ identifier ], completion: { (error: Error?) -> Void in
if let error = error {
os_log("Error al borrar la donación. %@", error.localizedDescription)
} else {
os_log("Donación borrada")
}
})
self.hideResponseForm()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment