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

# presentationContentInteraction(_:)

Configures the behavior of swipe gestures on a presentation.

```
nonisolated func presentationContentInteraction(_ behavior: PresentationContentInteraction) -> some View
```

## Parameters

`behavior`

The requested behavior.

## Discussion

By default, when a person swipes up on a scroll view in a resizable
presentation, the presentation grows to the next detent. A scroll view
embedded in the presentation only scrolls after the presentation
reaches its largest size. Use this modifier to control which action
takes precedence.

For example, you can request that swipe gestures scroll content first,
resizing the sheet only after hitting the end of the scroll view, by
passing the [`scrolls`](/documentation/SwiftUI/PresentationContentInteraction/scrolls) value to this
modifier:

```
struct ContentView: View {
    @State private var showSettings = false

    var body: some View {
        Button("View Settings") {
            showSettings = true
        }
        .sheet(isPresented: $showSettings) {
            SettingsView()
                .presentationDetents([.medium, .large])
                .presentationContentInteraction(.scrolls)
        }
    }
}
```

People can always resize your presentation using the drag indicator.

---

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)