Stacks, pushes and sheets
Which screens are pushed onto a tab's stack and which open as sheets, the rule that decides, how Back works, and how each sheet is dismissed.

Inside a tab there are two ways to show another screen. A push slides a screen in from the side and adds it to the tab's stack. A sheet rises from the bottom, covers the tab bar, and is dismissed to return. This page says which screens use which, and why.

Which is which

Four roots, ten pushed screens and ten sheets. A sheet is a route whose root has navigationPresentation="modal". Everything else is pushed. The full list with paths is in Every screen.

flowchart LR root["Tab root"] -->|"row or link"| pushed["Pushed screen"] pushed -->|"row or link"| deeper["Deeper pushed screen"] deeper -->|"Back button or edge swipe"| pushed pushed -->|"Back button or edge swipe"| root root -.->|"bar button or action row"| sheet["Sheet"] pushed -.->|"bar button or action row"| sheet sheet -.->|"Cancel, Close, Done, swipe down, or success"| pushed

The rule that decides

The framework's guide states it: "a row pushes its detail; create and edit are sheets" (start-here). DESIGN.md follows it: its map marks the directory, compose, new agent, providers, create, import and vault connect as modal. Reading the built routes against this, the rule is:

    Push when going deeper into something that exists: a document, an author, a thread, an agent, a conversation, an identity. You may keep going from there, and Back retraces the path.

    Sheet when doing one bounded task that ends in a result: typing an address, picking a document from the directory, writing a comment, creating an agent or an identity, importing a key, editing a profile, approving a vault connection. The sheet has a way out that discards (Cancel) and usually a way out that commits.

The directory is a sheet although it only navigates, because it is a picker: DESIGN.md says "Tap = close + push".

Three settings screens are pushed, not sheets: Server, Email notification settings and Vault. Each applies its changes in place and has no Cancel or commit pair, like a page of the Settings app (inferred). One inconsistency follows: Me's "Server" row pushes a screen, while its "Agent server" row opens a sheet with Cancel and Save.

Back

    Pushed screens get the system Back button and the edge swipe. The contract writes neither: iOS provides them for every pushed route, and the root is told where the person went (how). The app's own back action, used by Cancel buttons and after a successful save, pops one entry (source).

    Tapping the selected tab pops that tab to its root (The four tabs).

    Back restores context. Leaving a document from another site returns to the document underneath and to its site's directory and comments (reader context).

Sheets

A sheet with a symbol Close button: the directory. The document it was opened from shows dimmed behind it.
A sheet with a "Cancel" text button: compose. With no identity it offers "Create an identity" instead of the text field.

Sheet

Leading

Trailing

Closes itself when

Open site

"Cancel"

None. "Open" is a row

The address resolves: the sheet closes and the document is pushed

Directory

Close (symbol:close)

None

A row is tapped: the sheet closes and the document opens

Compose comment

"Cancel"

"Post"

The comment is posted: the sheet closes and the new thread opens, with a success haptic

New agent

"Cancel"

"Create"

The agent is created: the sheet is replaced by the agent's screen

Providers

None

"Done"

A provider is saved

Agent server

"Cancel"

"Save"

The address is accepted

Create identity

"Cancel"

"Create"

The identity is created

Import identity

"Cancel"

"Import"

The identity is imported

Edit profile

"Cancel", then "Done" after a save

None. "Save" is a row

Never. It shows "Profile updated" and stays

Connect vault

None

"Cancel"

Two seconds after the vault reports "Connected"

Notes on dismissal:

    Swipe down. Exact's navigation recipe says a sheet's Cancel carries the id the root names in navigationBack, "which a swipe down presses". Open site, Directory, Compose, Create, Import and Edit profile mark their leading button id="back". The three Agents sheets and Connect vault do not. Whether a swipe down behaves differently on those four is not verified.

    Success closes. A sheet that commits closes on success and stays open with an inline error on failure (Forms and inputs).

    Edit profile closes to Me. Its Cancel or Done returns to the Me root, not to the identity screen it was opened from (source).

    Full height. No sheet sets a detent, so every sheet opens at the system's large height.

    Sheets over sheets. "Model providers" can be opened from New agent, and "Create an identity" from Compose, so one sheet can sit on another.

Alerts are not routes

Confirmations are system alerts, not screens: removing an identity, renaming a key, revealing a private key, and logging out of a vault. They are dialog role="alertdialog" elements inside their screen (dialog), have no path, and cannot be linked to.

Why

Stacks and sheets are the two presentations iOS itself uses, and people already know how to leave each one (Leave it unsaid). The React Native app pushed everything onto one stack, including the create and import flows, so leaving a half-finished form meant going Back through it (what changed; the drawback is inferred).

User stories

This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
name
Stacks, pushes and sheets
summary
Which screens are pushed onto a tab's stack and which open as sheets, the rule that decides, how Back works, and how each sheet is dismissed.