<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISheetPresentationController/Detent/resolvedValue(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So35UISheetPresentationControllerDetentC5UIKitE13resolvedValue2in14CoreFoundation7CGFloatVSgSo0abcD17ResolutionContext_p_tF"
  },
  "title" : "resolvedValue(in:)"
}
-->

# resolvedValue(in:)

Resolves a detent to its value.

```
@MainActor @preconcurrency func resolvedValue(in context: any UISheetPresentationControllerDetentResolutionContext) -> CGFloat?
```

## Parameters

`context`

A context for resolving custom detent values. This context is available in the `resolver` closure of [`custom(identifier:resolver:)`](/documentation/UIKit/UISheetPresentationController/Detent/custom(identifier:resolver:)).

## Return Value

A <doc://com.apple.documentation/documentation/CoreFoundation/CGFloat-swift.struct> that represents the value of the detent, or `nil` if the detent is inactive in the provided context.

## Discussion

You can use this method to get the values of the system [`medium`](/documentation/UIKit/UISheetPresentationController/Detent/Identifier-swift.struct/medium) and [`large`](/documentation/UIKit/UISheetPresentationController/Detent/Identifier-swift.struct/large) detents, or the value of a custom detent. Use this method inside [`custom(identifier:resolver:)`](/documentation/UIKit/UISheetPresentationController/Detent/custom(identifier:resolver:)) to construct a custom detent according to the values of known detents.

---

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)