---
title: "presentationPlacement(_:)"
framework: SwiftUI
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "swiftui/view/presentationplacement(_:)"
---

# presentationPlacement(_:)

Sets the placement of a presentation within the presenting view.

## Declaration

```swift
nonisolated func presentationPlacement(_ placement: PresentationPlacement) -> some View

```

## Parameters

- `placement`: The placement of the presentation within the presenting view.

## Discussion

Discussion By default, a presentation uses automatic placement. Use this modifier to place it on the leading or trailing edge. For example, to maximize the visibility of the primary content behind a presented sheet: Map()     .sheet(isPresented: $isPresented) {         PlaceDetailView()             .presentationDetents([.medium, .large])             .presentationPlacement(.leading)     } Only sheet presentations respect this placement.

## See Also

### Configuring a sheet’s height and placement

- [presentationDetents(_:)](swiftui/view/presentationdetents(_:).md)
- [presentationDetents(_:selection:)](swiftui/view/presentationdetents(_:selection:).md)
- [presentationContentInteraction(_:)](swiftui/view/presentationcontentinteraction(_:).md)
- [presentationDragIndicator(_:)](swiftui/view/presentationdragindicator(_:).md)
- [PresentationDetent](swiftui/presentationdetent.md)
- [CustomPresentationDetent](swiftui/custompresentationdetent.md)
- [PresentationContentInteraction](swiftui/presentationcontentinteraction.md)
- [PresentationPlacement](swiftui/presentationplacement.md)
