Case

ScenePhase.background

The scene isn’t currently visible in the UI.

Declaration 宣言

case background

Discussion 議論

Do as little as possible in a scene that’s in the background phase. The background phase can precede termination, so do any cleanup work immediately upon entering this state. For example, close any open files and network connections. However, a scene can also return to the ScenePhase.active phase from the background.

Expect an app that enters the background phase to terminate.

See Also 参照

Getting Scene Phases