height(in:)
Calculates and returns a height based on the context.
Declaration
static func height(in context: Self.Context) -> CGFloat?Parameters
- context:
Information that can help to determine the height of the detent.
Return Value
The height of the detent, or nil if the detent should be inactive based on the contenxt input.