Contents

scene(_:willPerformAppIntent:)

Asks the scene delegate to prepare the scene for the specified app intent.

Declaration

func scene(_ scene: UIScene, willPerformAppIntent appIntent: any UISceneAppIntent)

Parameters

  • scene:

    The scene that receives the app intent.

  • appIntent:

    The app intent that the system is about to perform.

Mentioned in

Discussion

Implement this method in your scene delegate and use it to incorporate the specified app intent into the scene. For example, you might change the views of your scene to display an entity that the app intent contains. The system calls the app intent’s perform() method after this method returns.

If you don’t implement this method in your scene delegate, the system calls the performNavigation(forScene:) method of the app intent to configure the scene instead.