Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
if let intent = userActivity.interaction?.intent as? BookRideIntent {
// Viene de Siri
let handler = BookRideIntentHandler()
handler.handle(intent: intent) { (response) in
if response.code != .success {
os_log("Algo ha pasado con la peticion")
return true
} else if userActivity.activityType == NSUserActivity.bookRideActivityType {
// Viene de Search (Spotlight)
// Reseteamos la vista de selección de trayecto...
return true
return false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.