One Logo Pool Ball
SwiftUI · IOS API REFERENCE

PresentationDetent.Context

struct · iOS 16.0+ · SDK 27.1

@dynamicMemberLookup struct Context

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

Members (2)

get · iOS 16.0+

maxDetentValue

TypeScript
get maxDetentValue(): number
Swift declaration
var maxDetentValue: CGFloat { get }

The height that the presentation appears in.

subscript · iOS 16.0+

subscript

TypeScript
subscript(keyPath: SDKHandle): unknown
Swift declaration
subscript<T>(dynamicMember keyPath: KeyPath<EnvironmentValues, T>) -> T { get }

Returns the value specified by the keyPath from the environment. This uses the environment from where the sheet is shown, not the environment where the presentation modifier is applied.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →