Instance Method

requestSceneSessionRefresh(_:)

Asks the system to update any system UI associated with the specified scene.

Declaration

func requestSceneSessionRefresh(_ sceneSession: UISceneSession)

Parameters

sceneSession

The session whose scene you want to update.

Discussion

Call this method when your scene is in the background and any part of your scene's visible appearance changes. For example, call this method after updating your scene's content to let the system know your scene's snapshot requires refreshing. You don't need to call this method when your scene is running in the foreground.

See Also

Creating, Destroying, and Updating Scenes