---
title: detents
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisheetpresentationcontroller/detents
---

# detents

The array of heights where a sheet can rest.

## Declaration

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

## Discussion

Discussion The default value is an array that contains the value large(). This array must contain at least one element. When you set this value, specify detents in order from smallest to largest height.

## See Also

### Specifying the height

- [selectedDetentIdentifier](uikit/uisheetpresentationcontroller/selecteddetentidentifier.md)
- [UISheetPresentationController.Detent](uikit/uisheetpresentationcontroller/detent.md)
