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