PresentationDetent

A type that represents a height where a sheet naturally rests.

StructureiOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+PresentationDetent in SwiftUI

Declaration

React
type PresentationDetent =
  | 'large'
  | 'medium'
  | { fraction: number; }
  | { height: number; };
Swift
struct PresentationDetent

Pass a literal, or build one with SwiftUI.PresentationDetent from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Type methods

Used by

See also

More in Presentation.