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

# PresentationDetent.Context

Information that you use to calculate the presentation’s height.

## Declaration

```swift
@dynamicMemberLookup struct Context
```

## Topics

### Getting the height

- [maxDetentValue](swiftui/presentationdetent/context/maxdetentvalue.md)

### Supporting types

- [subscript(dynamicMember:)](swiftui/presentationdetent/context/subscript(dynamicmember:).md)

## See Also

### Creating custom detents

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