Contents

performNavigation(forScene:)

Tells the app intent that the system is about to show the specified scene.

Declaration

func performNavigation(forScene scene: UIScene)

Parameters

  • scene:

    The scene the system displays when the app runs in the foreground.

Mentioned in

Discussion

If the delegate for scene doesn’t implement the scene(_:willPerformAppIntent:) method of the AppIntentSceneDelegate protocol, the system calls this method before running the app intent. Use this method to perform any scene-related tasks before the system brings the scene to the foreground. For example, you might use this method to configure the views of the scene with the app intent’s content. The system calls this method before calling the app intent’s perform() method.

If you don’t implement this method in your app intent type, the default implementation does nothing.