ModalStyle
- Kind: Struct
- Namespace: SkeleKit
Properties
Anchor
The view a popover points at, or null.
Ignored for other presentations.
Type: View?
Arrows
The directions a popover's arrow may point.
Type: PopoverArrow
Automatic
Let the system choose the best presentation style dynamically.
Type: ModalStyle
CurrentContext
Presents inside the parent bounds instead of the full screen.
Type: ModalStyle
Detents
The heights a sheet may rest at.
It opens at the first and can be dragged between them; ignored for other presentations.
Type: IReadOnlyList<Detent>
FormSheet
A centered card layout on iPad/desktop, and a full sheet on iPhone.
Type: ModalStyle
FullScreen
Covers the entire screen and unloads the background.
Type: ModalStyle
OverCurrentContext
Presents inside the parent bounds while keeping the background loaded.
Type: ModalStyle
OverFullScreen
Covers the whole screen but keeps the background loaded.
Type: ModalStyle
Presentation
How the modal is presented.
Type: ModalPresentation
Methods
Popover
A contextual floating bubble anchored to a view on large displays.
| Parameter | Summary |
|---|---|
View anchor | The view the popover points at. |
(optional) PopoverArrow arrows | The directions the arrow may point. |
Returns
ModalStyle: The popover presentation style.
Sheet
An interactive, swipe-to-dismiss sheet.
Pass heights from smallest to largest. More than one lets the user drag between them, opening at the first.
| Parameter | Summary |
|---|---|
Detent detents | The heights the sheet may rest at, from smallest to largest. Defaults to full height. |
Returns
ModalStyle: The sheet presentation style.