list is the scrolling body of 22 of the 23 screens. It has two forms in Seed Exact. With appearance="auto" and section children it is the iOS Settings list: grey ground, white rounded cards, hairline separators. With appearance="none" it is only a scroller, and the rows are the app's own. section groups rows into one card and can carry a header and a footer.
What iOS draws
For list appearance="auto" listStyle="inset-grouped", UIKit's own list (UICollectionView with a list configuration). The card shape, the 16 point cell margins, the separators, the pressed highlight and the section header and footer type are all the platform's. A row is read by its shape: an optional leading symbol, a title, an optional value or a column of two texts, and an optional trailing chevron, checkmark or switch. Anything else is a custom row and keeps its own layout inside the cell.
For appearance="none", a scroll view with no separators and no cells. The source for both descriptions is Exact's guide (contract-for-humans.md).
Attributes on list in this app
Attribute | Uses | Values and meaning |
|---|---|---|
| 22 |
|
| 18 | Always |
| 22 | Names the scroller so the screen's |
| 22 | The list takes the space under the bar |
| 6 | Pull to refresh: Document, All comments, Thread, Activity inbox, Agents list, Agent detail |
| 3 | Holds the spinner while a reload is out and content is already shown: Document, All comments, Thread |
| 1 | The Agent session transcript: only visible rows are built, it opens at the newest message and follows new ones |
| 10 | Test handle |
The four appearance="none" lists are the reading column of Document (read.contract L312), All comments, Thread and the transcript of the Agent session (agents.contract L530-L537).
section
64 sections. A section's first child may be a header and its last a footer, each holding one text (header, footer and nav). 28 sections have a header and 15 have a footer. section takes no style attributes in this app; two carry role="radiogroup" and an aria-label, on the Server screen, where the rows are radio buttons (Server rows).
section
header
text "Seed site URL"
input type="url" value=draft input=edit submit=submit placeholder="https://hyper.media" aria-label="Seed site URL"
footer
text "Enter a Seed site address or an hm:// document link."From the Open site sheet (read.contract L462-L467).
Used by
Where it is written |
|
|
|---|---|---|
Document and site home ( | 1 | 0 |
Directory sheet ( | 1 | 3 |
Author profile ( | 1 | 3 |
Open site sheet ( | 1 | 3 |
All comments ( | 1 | 0 |
Thread ( | 1 | 0 |
Activity inbox ( | 1 | 6 |
Email notification settings ( | 1 | 7 |
Agents list ( | 1 | 5 |
Agent detail ( | 1 | 3 |
Agent session ( | 1 | 0 |
New agent sheet ( | 1 | 6 |
Providers sheet ( | 1 | 3 |
Agent server sheet ( | 1 | 2 |
Me ( | 1 | 3 |
Identity detail ( | 1 | 5 |
Create identity sheet ( | 1 | 3 |
Import identity sheet ( | 1 | 2 |
Server ( | 1 | 3 |
Vault ( | 1 | 4 |
Connect vault sheet ( | 1 | 1 |
ProfileForm (named component) | 1 | 2 |
Total | 22 | 64 |
The Compose comment sheet is the one screen with no list: its body is a single text area. The Activity inbox swaps its list for a scroll when it shows an EmptyState.
Rules for use
A settings, form, index or status screen is an inset grouped list. Do not draw cards by hand for it.
A reading surface (a document, a thread, a transcript) is appearance="none", with a centred column capped at max-width="40rem".
Write no separators, row padding or row backgrounds in a grouped list. The cell supplies them.
Give a section a header when the group has a name, and a footer when a rule or consequence needs saying. Errors that belong to a field may take the footer's place in red (Forms and inputs).
An empty group is a row inside the section, not an EmptyState (EmptyState).
Put refresh on lists whose content comes from the network and can go stale.
Only the transcript is virtualized. DESIGN.md describes the document body as virtualized too; in the built app it is not.
Why
DESIGN.md names "native lists and sheets" as the point of the redesign and principle 1 leaves lists to the platform (Leave it unsaid). The grouped list gives every tab the same rhythm with no design work, and it adapts to dark mode and Dynamic Type by itself (Light and dark). The catalogue of row shapes and list recipes is in Lists.
Related
Parent: Primitive elements
How it is built: Contract views and built-in calls, State, refresh and stale-reply patterns
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime