Skip to content

Commit

Permalink
Disable shortcuts in one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
bachand committed May 9, 2019
1 parent 5037a8a commit 684879f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions App/SiriShortcut/ExampleIntent/IntentHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Intents
class IntentHandler: INExtension {

override func handler(for intent: INIntent) -> Any {
#if !DISABLE_SIRI_SHORTCUT
if #available(iOS 12.0, *) {
guard intent is BuckPhotoIntent else {
fatalError("Unhandled intent type: \(intent)")
Expand All @@ -14,6 +15,7 @@ class IntentHandler: INExtension {
} else {
fatalError("Unexpectly executing code path on iOS < 12.0")
}
#endif
}

}

0 comments on commit 684879f

Please sign in to comment.