Almost every screen in the mobile app is one scrolling list under a navigation bar. The app uses the list primitive in three ways: an inset grouped list for settings and forms, a content list drawn as written for reading, and one virtualized list for the agent transcript. Choosing between them is the first design decision on any new screen.
The three kinds
Kind | Contract | What the platform draws | Used for |
|---|---|---|---|
Inset grouped |
| UIKit's own list: grey grouped page, rounded cards, separators, cell insets, header and footer type, press highlight | Settings, pickers, forms, profile pages, inboxes: 18 screens |
Content, drawn as written |
| Scrolling and pull to refresh only. No cells, separators or insets | Document, thread, all comments: 3 screens |
Virtualized transcript |
| Mounts only rows near the viewport, opens at the bottom and follows new rows | Agent session only |
In a content list the app supplies its own gutters: every child is a column with max-width="40rem", width="100%", align-self="center" and 20 points of side padding. That is the reading column from Reading first. The Exact guide says the same split: "Inset-grouped lists are for settings and forms; a content screen is a scroll of these" (contract-for-agents.md).
Sections, headers and footers
A grouped list's children are sections. A section's first child may be a header holding one text, its last a footer holding one text. The platform sets their type and case. Headers name the group in one or two words ("Identities", "Connections", "Saved servers"). Footers carry the explanation, the hint for a hidden gesture ("Tap an identity to use it. Swipe to remove it from this device."), or a form's validation message (see Forms). A section with no header is used for a lone action row or an error.
Row anatomy
The platform reads a grouped row by its shape, so rows are written in a fixed order:
Title: a text, body size unless a style is given. Content rows use -exact-headline.
Secondary line: a column of two texts, the second -exact-footnote in -exact-secondary-label. Or a trailing value: a second text in -exact-secondary-label ("hyper.media", "None", "Built with Exact").
Trailing accessory: symbol:forward-chevron when the row pushes a screen, symbol:checkmark in brand when it is the selected choice, a switch, or a short text ("Current").
A row that navigates is a link or a button; a row that only shows a value is a row. Rows that act without navigating have no chevron ("Create identity", "Copy account ID").
Swipe actions and pull to refresh
delete= on a row gives it the platform's swipe to delete. Two rows have it: other identities on Me (opens the "Remove this identity?" alert) and saved servers on Server (removes at once). Both sections say so in their footer, because a swipe is invisible.
refresh= on a list gives it pull to refresh. Six screens have it; see Refresh, haptics and progress.
Every list in the app
The app has 22 lists: 18 inset grouped, 3 content lists and 1 virtualized transcript. The full table, screen by screen with each list's rows, is on Every list in the app.
Do and do not
Do use an inset grouped list for anything that looks like Settings. Do not paint card backgrounds yourself there.
Do write rows in the leading, title, value, accessory order so the platform draws a standard cell.
Do not put a grouped list inside reading content. "In this space" under a document is a painted panel of rows, because the document list is drawn as written. DESIGN.md calls it an inset grouped list; the code is a panel.
Do explain a swipe in the section footer.
Related
Cards and panels, Loading, failure and empty states, Spacing, radii and sizes, Leave it unsaid. Implementation: Contract views and built-in calls. Source: the grouped list on Me at me.contract L65-L124, the content list at read.contract L312-L354, the transcript at agents.contract L530-L537.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime