PresentationBackgroundInteraction

The kinds of interaction available to views behind a presentation.

StructureiOS 16.4+macOS 13.3+tvOS 16.4+watchOS 9.4+PresentationBackgroundInteraction in SwiftUI

Declaration

React
type PresentationBackgroundInteraction =
  | 'automatic'
  | 'disabled'
  | 'enabled'
  | { enabled: { upThrough: PresentationDetent; }; };
Swift
struct PresentationBackgroundInteraction

Pass a literal, or build one with SwiftUI.PresentationBackgroundInteraction from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Type methods

Overview

Use values of this type with the View.presentationBackgroundInteraction(_:) modifier.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Presentation.