One Logo Pool Ball
SwiftUI · IOS API REFERENCE

PresentationBackgroundInteraction

struct · iOS 16.4+ · SDK 27.1

struct PresentationBackgroundInteraction

The kinds of interaction available to views behind a presentation. Use values of this type with the ``View/presentationBackgroundInteraction(_:)`` modifier.

Members (4)

static · iOS 16.4+

enabled

TypeScript
static enabledUpThrough(detent: PresentationDetent): PresentationBackgroundInteraction
Swift declaration
static func enabled(upThrough detent: PresentationDetent) -> PresentationBackgroundInteraction

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.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →