Open as Sheet
Shows a screen over the current one: as a sheet that slides up, or full screen.
Category: Navigation
#When to use it
Use it for a short task on top of the current screen, like writing a new note or picking a filter, that the person finishes and closes.
#Example
A New note button, When Tapped: Open as Sheet with Screen: the new-note screen, As: Sheet. On that screen, the Save button ends with Go Back / Close.
#Good to know
- The screen opens with its title and a Close button at the top. Full Screen covers everything; a sheet can also be swiped down.
- The steps after Open as Sheet run right away, without waiting for it to close. Put what should happen afterwards in On Dismiss: those steps run when the sheet closes, however it's closed.
#Add it
Select a view, open the Inspector's Actions tab, pick when it runs, tap Add action and choose Open as Sheet (under Navigation). Tap the step to open its settings.
#Settings
| Setting | What it does | Kind | Default |
|---|---|---|---|
| Screen | The screen to show. | Screen | Required |
| As | How to show it: Sheet slides up over the screen, Full Screen covers it. Popover shows as a sheet for now. | Choice: Sheet, Full Screen, Popover | sheet |
| With | Values for the screen's params. | Fields | Optional |
| On Dismiss | Steps to run when it closes. | Steps | Optional |