---
title: UISheetPresentationController.Detent
framework: uikit
role: symbol
role_heading: Class
path: uikit/uisheetpresentationcontroller/detent
---

# UISheetPresentationController.Detent

An object that represents a height where a sheet naturally rests.

## Declaration

```swift
@MainActor class Detent
```

## Topics

### Creating a system detent

- [large()](uikit/uisheetpresentationcontroller/detent/large().md)
- [medium()](uikit/uisheetpresentationcontroller/detent/medium().md)

### Creating a custom detent

- [custom(identifier:resolver:)](uikit/uisheetpresentationcontroller/detent/custom(identifier:resolver:).md)
- [resolvedValue(in:)](uikit/uisheetpresentationcontroller/detent/resolvedvalue(in:).md)
- [UISheetPresentationControllerDetentResolutionContext](uikit/uisheetpresentationcontrollerdetentresolutioncontext.md)

### Identifying a detent

- [identifier](uikit/uisheetpresentationcontroller/detent/identifier-swift.property.md)
- [UISheetPresentationController.Detent.Identifier](uikit/uisheetpresentationcontroller/detent/identifier-swift.struct.md)

### Instance Properties

- [backgroundEffect](uikit/uisheetpresentationcontroller/detent/backgroundeffect.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Specifying the height

- [detents](uikit/uisheetpresentationcontroller/detents.md)
- [selectedDetentIdentifier](uikit/uisheetpresentationcontroller/selecteddetentidentifier.md)
