---
title: PresentationDetent
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/presentationdetent
---

# PresentationDetent

A type that represents a height where a sheet naturally rests.

## Declaration

```swift
struct PresentationDetent
```

## Topics

### Getting built-in detents

- [large](swiftui/presentationdetent/large.md)
- [medium](swiftui/presentationdetent/medium.md)

### Creating custom detents

- [custom(_:)](swiftui/presentationdetent/custom(_:).md)
- [fraction(_:)](swiftui/presentationdetent/fraction(_:).md)
- [height(_:)](swiftui/presentationdetent/height(_:).md)
- [PresentationDetent.Context](swiftui/presentationdetent/context.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring a sheet’s height

- [presentationDetents(_:)](swiftui/view/presentationdetents(_:).md)
- [presentationDetents(_:selection:)](swiftui/view/presentationdetents(_:selection:).md)
- [presentationContentInteraction(_:)](swiftui/view/presentationcontentinteraction(_:).md)
- [presentationDragIndicator(_:)](swiftui/view/presentationdragindicator(_:).md)
- [CustomPresentationDetent](swiftui/custompresentationdetent.md)
- [PresentationContentInteraction](swiftui/presentationcontentinteraction.md)
