replace
A behavior that replaces any currently opened immersive environment with the new scene.
Declaration
static var replace: ImmersiveEnvironmentBehavior { get }Discussion
Use this value with the immersiveEnvironmentBehavior(_:) scene modifier to define that the system should hide the system’s immersive environment before opening the scene.