---
title: "resolvedValueInContext:"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uisheetpresentationcontrollerdetent/resolvedvalueincontext:"
---

# resolvedValueInContext:

Resolves a detent to its value.

## Declaration

```occ
- (CGFloat) resolvedValueInContext:(id<UISheetPresentationControllerDetentResolutionContext>) context;
```

## Parameters

- `context`: A context for resolving custom detent values. This context is available in the resolver block of doc://com.apple.uikit/documentation/UIKit/UISheetPresentationControllerDetent/customDetentWithIdentifier:resolver:.

## Return Value

Return Value A CGFloat that represents the value of the detent, or UISheetPresentationControllerDetentInactive if the detent is inactive in the provided context.

## Discussion

Discussion You can use this method to get the values of the system medium and large detents, or the value of a custom detent. Use this method inside customDetentWithIdentifier:resolver: to construct a custom detent according to the values of known detents.

## See Also

### Creating a custom detent

- [customDetentWithIdentifier:resolver:](uikit/uisheetpresentationcontrollerdetent/customdetentwithidentifier:resolver:.md)
- [UISheetPresentationControllerDetentResolutionContext](uikit/uisheetpresentationcontrollerdetentresolutioncontext.md)
- [UISheetPresentationControllerDetentInactive](uikit/uisheetpresentationcontrollerdetentinactive.md)
