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
Tab | Root | Pushed screens | Sheets |
|---|---|---|---|
Read | |||
Activity | None | ||
Agents | |||
Me | Create identity, Import identity, Edit profile, Connect vault |
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"| pushedThe 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
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 ( | 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).
US-READ-03 Follow links between documents: Documents are pushed on the Read stack; how Back works
US-READ-04 Open a Seed site by URL: Open site is a sheet; submitting replaces it with a pushed document
US-READ-05 Open an hm:// link from outside the app: The linked document is pushed; Back returns
US-READ-06 Keep reading another site in place: The context is the top document, so Back restores the previous one
US-READ-07 Browse and search a space's documents: The directory is a sheet; picking a row closes it and pushes the document
US-READ-09 See who wrote a document and visit their profile: The profile is pushed, with Back
US-READ-10 Refresh a page and recover from a failed load: Back from a failed page
US-DISC-03 Comment on a document: The compose sheet as a modal
US-DISC-05 Be guided to create an identity before commenting: A sheet over a sheet, closing back to where the person was
US-ACT-02 Open what a notification is about: The thread is pushed on the Read stack
US-ACT-04 Get notifications by email: Pushed, not a sheet
US-AGENT-02 Choose my agent server: Why this is a sheet
US-AGENT-03 Set up a model provider: Why this is a sheet with only Done
US-AGENT-04 Create an agent: Why this is a sheet and why it is replaced by the agent
US-AGENT-08 Return to earlier conversations: List, agent, conversation as pushes with back
US-ID-01 Create an identity: Why creating is a modal sheet over Me
US-ID-02 Import an identity I already have: Why importing is a modal sheet
US-ID-07 Edit my public profile: A sheet that stays open after saving
US-VAULT-01 Connect my vault to bring my identities to this phone: The connect sheet as a modal over Vault
US-APP-01 The app feels like an iPhone app: Which screens push and which are sheets, Back and dismissal
US-APP-02 Move around the app without losing my place: Push or sheet, Back, and how each sheet is dismissed
US-TEAM-05 Add a story and see it shipped: The push or sheet rule a design applies
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime