<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/presentationPlacement(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE21presentationPlacementyQrAA012PresentationE0VF"
  },
  "title" : "presentationPlacement(_:)"
}
-->

# presentationPlacement(_:)

Sets the placement of a presentation within the presenting view.

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

## Parameters

`placement`

The placement of the presentation within
the presenting view.

## Discussion

By default, a presentation uses [`automatic`](/documentation/SwiftUI/PresentationPlacement/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)