AppIntentSceneDelegate
Implement this protocol on your UIScene delegate to handle AppIntent invocations targeting a specific scene
Declaration
protocol AppIntentSceneDelegate : UISceneDelegateOverview
Use the scene delegate to respond to an app intent, as shown in the following example:
func scene(_ scene: UIScene, willPerformAppIntent appIntent: any AppIntent) {
switch appIntent {
case let myIntent as MyIntent:
windowScene.activationConditions.prefersToActivateForTargetContentIdentifierPredicate = NSPredicate("self == %@", myIntent.targetContentIdentifier)
}
}