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

# UISheetPresentationController.Detent

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

```
@MainActor class Detent
```

## Topics

### Creating a system detent

[`large()`](/documentation/UIKit/UISheetPresentationController/Detent/large())

Creates a system detent for a sheet at full height.

[`medium()`](/documentation/UIKit/UISheetPresentationController/Detent/medium())

Creates a system detent for a sheet that’s approximately half the height of the screen, and is inactive in compact height.

### Creating a custom detent

[`custom(identifier:resolver:)`](/documentation/UIKit/UISheetPresentationController/Detent/custom(identifier:resolver:))

Creates a custom detent for a sheet by computing its value according to the properties of the provided context.

[`resolvedValue(in:)`](/documentation/UIKit/UISheetPresentationController/Detent/resolvedValue(in:))

Resolves a detent to its value.

[`customDetentWithIdentifier:resolver:`](/documentation/UIKit/UISheetPresentationControllerDetent/customDetentWithIdentifier:resolver:)

Creates a custom detent for a sheet by computing its value according to the properties of the provided context.

[`resolvedValueInContext:`](/documentation/UIKit/UISheetPresentationControllerDetent/resolvedValueInContext:)

Resolves a detent to its value.

[`UISheetPresentationControllerDetentResolutionContext`](/documentation/UIKit/UISheetPresentationControllerDetentResolutionContext)

A context for resolving custom detent values.

[`UISheetPresentationControllerDetentInactive`](/documentation/UIKit/UISheetPresentationControllerDetentInactive)

A value that represents an inactive detent.

### Identifying a detent

[`identifier`](/documentation/UIKit/UISheetPresentationController/Detent/identifier-swift.property)

The identifier of the detent.

[`UISheetPresentationController.Detent.Identifier`](/documentation/UIKit/UISheetPresentationController/Detent/Identifier-swift.struct)

Constants that identify system detent sizes.



---

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)