PresentationPlacement

The placement of a presentation within the presenting view.

StructureiOS 27.0+macOS 27.0+tvOS 27.0+watchOS 27.0+visionOS 27.0+PresentationPlacement in SwiftUI

Declaration

React
type PresentationPlacement = 'automatic' | 'center' | 'leading' | 'trailing';
Swift
struct PresentationPlacement

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

Type properties

Overview

Only sheet presentations respect this placement.

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

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

Used by

See also

More in Presentation.