---
title: maxDetentValue
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/presentationdetent/context/maxdetentvalue
---

# maxDetentValue

The height that the presentation appears in.

## Declaration

```swift
var maxDetentValue: CGFloat { get }
```
