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

# detents

The array of heights where a sheet can rest.

```
var detents: [UISheetPresentationController.Detent] { get set }
```

## Discussion

The default value is an array that contains the value [`large()`](/documentation/UIKit/UISheetPresentationController/Detent/large()). This array must contain at least one element. When you set this value, specify detents in order from smallest to largest height.

---

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)