list and section
The scroller behind almost every screen: the inset grouped list of sections, and the unstyled list that holds the reading column and the transcript.

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.

An inset grouped list: a section of two rows, then a section with a header ("Another server"), one row and a footer.
Row shapes in one list: avatar rows, symbol and title rows in the tint, title and value rows with a chevron.

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

appearance

22

"auto" 18 times (grouped list), "none" 4 times (own rows)

listStyle

18

Always "inset-grouped". grouped and plain are never used

id

22

Names the scroller so the screen's navigationScroll can tie it to the navigation bar (large title collapse, scroll under the bar)

flex=1, min-height=0

22

The list takes the space under the bar

refresh

6

Pull to refresh: Document, All comments, Thread, Activity inbox, Agents list, Agent detail

refreshing

3

Holds the spinner while a reload is out and content is already shown: Document, All comments, Thread

virtualized, scroll-start="end", scrollFollowEnd

1

The Agent session transcript: only visible rows are built, it opens at the newest message and follows new ones

testId

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."

Rows inside sections are a button (an action), a link (a push), a text (a note or a message), an input, or a row or column for a custom layout. Two rows also carry delete=, which gives them the system swipe to delete: other identities on Me and saved servers on Server.

Used by

Where it is written

list

section

Document and site home (DocScreen)

1

0

Directory sheet (DirectoryScreen)

1

3

Author profile (AuthorScreen)

1

3

Open site sheet (OpenSiteScreen)

1

3

All comments (DiscussAllScreen)

1

0

Thread (DiscussThreadScreen)

1

0

Activity inbox (ActivityScreen)

1

6

Email notification settings (ActivityEmailScreen)

1

7

Agents list (AgentsScreen)

1

5

Agent detail (AgentDetailScreen)

1

3

Agent session (AgentSessionScreen)

1

0

New agent sheet (AgentCreateScreen)

1

6

Providers sheet (AgentProvidersScreen)

1

3

Agent server sheet (AgentServerScreen)

1

2

Me (MeScreen)

1

3

Identity detail (MeIdentityScreen)

1

5

Create identity sheet (MeCreateScreen)

1

3

Import identity sheet (MeImportScreen)

1

2

Server (MeServerScreen)

1

3

Vault (VaultScreen)

1

4

Connect vault sheet (VaultConnectScreen)

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.

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

Unsubscribe anytime