PresentationAdaptation
Strategies for adapting a presentation to a different size class.
Declaration
type PresentationAdaptation =
| 'automatic'
| 'fullScreenCover'
| 'none'
| 'popover'
| 'sheet';struct PresentationAdaptationPass a literal, or build one with SwiftUI.PresentationAdaptation from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.PresentationAdaptation.automaticUse the default presentation adaptation.
'fullScreenCover'SwiftUI.PresentationAdaptation.fullScreenCoverPrefer a full-screen-cover appearance when adapting for size classes.
'none'SwiftUI.PresentationAdaptation.noneDon't adapt for the size class, if possible.
'popover'SwiftUI.PresentationAdaptation.popoverPrefer a popover appearance when adapting for size classes.
'sheet'SwiftUI.PresentationAdaptation.sheetPrefer a sheet appearance when adapting for size classes.
Overview
Use values of this type with the View.presentationCompactAdaptation(_:)
and View.presentationCompactAdaptation(horizontal:vertical:) modifiers.
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
See also
More in Presentation.
- AutomaticPresentationSizingThe default presentation sizing, appropriate for the platform.
- DismissActionAn action that dismisses a presentation.
- DismissBehaviorProgrammatic window dismissal behaviors.
- DismissWindowActionAn action that dismisses a window associated to a particular scene.
- FileDialogBrowserOptionsThe way that file dialogs present the file system.
- FittedPresentationSizingThe size of the presentation is dictated by the ideal size of the content.
- FormPresentationSizingThe size is appropriate for forms and slightly less wide than.page
- MenuActionDismissBehaviorThe set of menu dismissal behavior options.
- MenuOrderThe order in which a menu presents its content.
- PagePresentationSizingThe size is roughly the size of a page of paper, appropriate for informational or compositional content.
- PopoverAttachmentAnchorAn attachment anchor for a popover.
- PresentationBackgroundInteractionThe kinds of interaction available to views behind a presentation.