NACC_AdaptivePickerPresentation
@MainActor
struct NACC_AdaptivePickerPresentation : ViewModifier
This ViewModifier will present a body containing our special DatePicker.
-
This is used to determine whether or not to present the iPhone sheet as “half-height,” or “full-height.”
Declaration
Swift
@MainActor private static let _screenDetentThresholdInDisplayUnits: CGFloat -
Set to true, if we are to be showing.
Declaration
Swift
@Binding @MainActor var isPresented: Bool { get nonmutating set } -
The date that we are reprsenting/changing.
Declaration
Swift
@Binding @MainActor var selectedDate: Date { get nonmutating set } -
This returns the detents to use for the modal sheet, containing the DatePicker. Thos only applies to portrait mode.
Declaration
Swift
@MainActor private var _screenDetents: Set<PresentationDetent> { get } -
This returns the appropriate body for the type of device we’re on.
Declaration
Swift
@MainActor func body(content: Content) -> some View
View on GitHub