The kinds of interaction available to views behind a presentation.
Use values of this type with the
``View/presentationBackgroundInteraction(_:)`` modifier.
People can interact with the view behind a presentation up through a
specified detent.
At detents larger than the one you specify, SwiftUI disables
interaction.
- Parameter detent: The largest detent at which people can interact with
the view behind the presentation.
get · iOS 16.4+
enabled
TypeScript
static get enabled(): PresentationBackgroundInteraction
Swift declaration
static var enabled: PresentationBackgroundInteraction { get }
People can interact with the view behind a presentation.
get · iOS 16.4+
disabled
TypeScript
static get disabled(): PresentationBackgroundInteraction
Swift declaration
static var disabled: PresentationBackgroundInteraction { get }
People can't interact with the view behind a presentation.
get · iOS 16.4+
automatic
TypeScript
static get automatic(): PresentationBackgroundInteraction
Swift declaration
static var automatic: PresentationBackgroundInteraction { get }
The default background interaction for the presentation.