<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISheetPresentationController/prefersScrollingExpandsWhenScrolledToEdge",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISheetPresentationController(py)prefersScrollingExpandsWhenScrolledToEdge"
  },
  "title" : "prefersScrollingExpandsWhenScrolledToEdge"
}
-->

# prefersScrollingExpandsWhenScrolledToEdge

A Boolean value that determines whether scrolling expands the sheet to a larger detent.

```
var prefersScrollingExpandsWhenScrolledToEdge: Bool { get set }
```

## Discussion

The default value is <doc://com.apple.documentation/documentation/Swift/true>, which means if the sheet can expand to a larger detent than [`selectedDetentIdentifier`](/documentation/UIKit/UISheetPresentationController/selectedDetentIdentifier), scrolling up in the sheet increases its detent instead of scrolling the sheet’s content. After the sheet reaches its largest detent, scrolling begins.

Set this value to <doc://com.apple.documentation/documentation/Swift/false> if you want to avoid letting a scroll gesture expand the sheet. For example, you can set this value on a nonmodal sheet to avoid obscuring the content underneath the sheet.

---

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)