Options
The options of modals.
Options
Every key, with the platforms it works on. A dashed platform means the key does nothing there.
8 options shown
A screen shown as a modal: how it is presented, how it can be dismissed, its sheet.
The settings of a sheet: its stops, dimming, handle, scrolling and corners.
The size of a form sheet or a popover on iPad and Mac.
The source and the arrow of a popover.
The test identifier of the modal's container: on iOS the view of the root of the shown modal, on Android the modal's view in the layer of modals (for a sheet, the container of the sheet). The identifiers of the sheet's handle and of the dimming under it are <testID>.grabber and <testID>.scrim, on Android only: iOS gives no public way to name the system handle and dimming. The close button and the content of the screens have their own testID.
Whether the user may dismiss the modal by a gesture: a swipe down on a sheet, a tap on the dimming, a tap outside a popover. With false the modal stays and each attempt arrives as modalDismissAttempted. A full-screen modal can't be dismissed by a gesture anyway. The hold belongs to the screen that set it and ends when that screen leaves the modal or lifts the hold. Set by usePreventLeave through mergeOptions; apps don't set it.
How a modal is presented: full screen, as a page sheet, a form sheet, a popover…
The system transition of a modal: cover vertical, flip horizontal, cross dissolve, partial curl.