---
title: "Native presentation and navigation (iOS)"
description: "A name across a push flies with nothing else written (LLP 1013.004). A cold launch flashes the wrong colour, and no screenshot shows it."
modificationDate: "2026-12-01"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Native presentation and navigation (iOS)

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/reference/pitfalls/native-presentation-and-navigation-ios: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

- **A name across a push flies with nothing else written (LLP 1013.004).** On iOS a
  `sharedElement` name the leaving and the arriving route each hold once flies alongside
  UIKit's push, pop, back swipe and full-screen presentation; no `-exact-layout-transition` is
  needed. A name held twice in a route, or in a sheet, stays
  put. The zoom's own element is `navigationSource=`'s `id` (`ZoomPushIOS.swift`, iOS 18 and
  later); beside a zoom no name flies, and the destination's ride the zoomed card. Film on the agent's clock skips
  UIKit's transitions, which run on their own: film them under `--timing platform`, whose
  frames are sampled on the wall clock and not reproducible, or record the simulator
  (`xcrun simctl io booted recordVideo`) and read its frames.

- **A cold launch flashes the wrong colour, and no screenshot shows it.** The launch
  screen is `host.ios.launchImage` centred on the launch colour, which a top-level
  `background_color` names in every scheme, so a lone `"#ffffff"` launches white in dark
  mode too; `color_scheme_light` or `color_scheme_dark` names one scheme's alone. Unnamed,
  it is on iOS the app's own background where the build can read it, every route agrees (a
  colour or a theme's colour on each route, else the root) and nothing may paint over it to
  the screen's edges, else the platform's (the grouped grey where every route scrolls a
  grouped list or writes `-exact-grouped-background`), and on Android and the web their own
  page, as a native app's: name none unless the launch must differ, as it may on Android and
  the web for an app with a background of its own, or on iOS where a launch recording shows
  another colour.
  Android's launch window takes the same colours, with the launcher icon on them from
  Android 12 unless `host.android.launchImage` names a picture or `false`. It is gone before a screenshot
  can be taken: record one (`xcrun simctl io <udid> recordVideo launch.mp4`, then `simctl
  launch`; `adb shell screenrecord` on Android) and read its frames (the euxy port's white
  launch, 2026-10-21).

- **A changed launch colour shows the system's background on a simulator that launched an
  earlier build.** The simulator's launch-screen service (`splashboardd`) keeps the asset
  catalog it first read for an app id, through reinstalls and uninstalls, until the service
  or the simulator restarts. A launch colour's name ends in a digest of its value, so a
  changed colour is missing from the kept catalog and the launch is white, or black in dark
  mode; a changed picture still draws, from the PNGs beside the catalog, in its light
  version. Fix: restart the simulator (`xcrun simctl shutdown <udid>`, then `boot`) before
  judging a launch screen. A physical iPhone was not checked.

- **A sticky child under the bar covers the first row at rest.** Cause: a `top` written
  as the bar's height to clear it (React Conf's day picker, `top=114`). A route's
  scroller begins at the bar's bottom, as a web scroller begins below a header in flow,
  and `top` counts from there: at `scrollTop` 0 the box is moved down by `top` over
  what follows, as Chrome draws it, and once scrolled it pins that far below the bar.
  Fix: `position="sticky" top=0` pins it at the bar's bottom, in flow at rest. `check`
  names the covered row ("under … at rest").
- **Edge-swipe back does nothing.** Cause: the pop gesture presses the control named
  by the root's `navigationBack`, and a route that declares one that is disabled
  refuses it (the log says "back gesture refused" and why). A route with no such
  control always goes back (LLP 1115 D5). Fix: enable the control, or leave it out.
- **Browser Back restores a screen, but its Back returns to the screen just left.**
  Cause: an in-app transition used `open`, which replaced the current visit with
  the destination's declared chain. Browser Back then pushed the discarded URL
  above that destination. Fix: use `push` to keep the caller. `open` also keeps
  every current visit when the selected stack is a prefix of the declared chain;
  use it then to include an intermediate parent, or for a deliberate return such
  as Home (LLP 1038 §3, D7).
- **A `link` to a route does nothing on iOS or the Mac.** On the web the browser's
  Back and Forward and a `link` to a declared route work with no `navigate` handler:
  the runner pops or goes there itself (LLP 1115 D5, LLP 1115.000 D4.3). A native host
  has that only for Back; a link, or a URL the system opens, is refused there (the log
  says "navigate refused"). Fix: `navigate=follow` on the root and
  `action follow(url: string)` with `nav = go(nav, url)`, as every pattern has;
  `one-screen` keeps it with one route (LLP 1116.002, 1116.003).
- **A pushed screen's content is cut off and never scrolls, or its large title never
  collapses.** Cause: a route is a box, not a scroller; a title collapses only with
  the scroller right after the route's `header`. Fix: a `scroll flex=1 min-height=0`
  right after the `header`. It is the bar's scroller with nothing written, and
  `navigationScroll="id"` on the route names a different one
  (docs/contract-for-agents.md, "Routes and web documents"). The compiler refuses
  a name nothing in the route carries, or one on a box that never scrolls (`lower-route-scroll`). **Candidate diagnostic:** the
  compiler could refuse a named scroller that is not right after the `header` (an
  iOS-only rule today, so not refused). Apple's `logs` journals `route-overflow`
  after first pixel at the settled window offer when no scroller reaches the
  route's in-flow overflow: an ancestor's or the document's stops at a clip or a
  native block, and never moves content that stays in the route's box out of its
  padding. A fitting layout clears suppression.
- **The root screen has no native bar, and the log says `navigationKey "0" matches no
  route`.** Cause: the list route is keyed by a name (`navigationKey="items"`, as the
  `list-detail` and `rest` patterns key it) while the root names the visit,
  `` navigationKey=`${top(nav).id}` `` (`"0"` at the stack's root), so at the root no
  route is selected and nothing is projected. A closed sheet or a popped screen leaves
  the route beneath it live (LLP 1035.001 D1, amended); it used to stay inert on the web
  and blank on iOS (chat-rooms, bake-off round 6). Fix: key them alike: every route
  `` navigationKey=`${e.id}` `` under a `` `${top(nav).id}` `` root, or the patterns'
  root expression, `"items"` while the list is on top, with the named list route.
  **Diagnosed:** the compiler warns (`lower-navigation-key`), and for the reverse, a
  root keyed by a literal over routes keyed by id, where no push is ever shown (a tap
  on a row did nothing, chat-rooms round 12, about eight minutes).
- **A sheet won't swipe down to dismiss.** It springs back (the log says "modal
  dismissal refused: …" and why). Cause: the sheet declares the root's `navigationBack`
  control and it is disabled, or the sheet has `closedby="none"`; a sheet with no such
  control always swipes down (LLP 1115 D5). (`ModalIOS.swift`, `refusesDismissal`.)
- **A sheet's swipe down throws away the edit.** Cause: its Cancel is the root's
  `navigationBack` control (`id="back"`, as the examples name it), which a swipe down and
  the agent's `back` press, and this Cancel reverts. Fix: when a swipe down keeps the
  edits (the original's does), give Cancel another `id`; the swipe down then dismisses
  without pressing it, and on the Mac Cancel leaves the sheet's Cancel slot for its header
  (euxy port).
- **The app looks like an imitation of iOS.** Cause: controls built from boxes
  (a painted switch, buttons laid out as a tab bar or a title bar, rows drawn as a
  grouped list), and values copied from a screenshot: Apple's system colours as hex
  (`#8e8e93`, `#007aff`, `#f2f2f7`), headings as `font-size=34 font-weight=700`, a
  large title or a search bar painted in the content. Each is a tell: it misses dark
  mode, Increased Contrast and the next iOS. Fix: the native Contract forms
  ([the agent guide](https://exact.expo.dev/learn/contract-for-agents/views-layout-and-interaction.md), "Prefer
  native controls"): a `header` with a `role="heading" aria-level=1` (the large
  title) and an `input type="search"` (the bar's search field); a colour role
  (`-exact-secondary-label`, `AccentColor`, `-exact-grouped-background`) or nothing
  where you would write a hex. A hand-built lookalike of a system control is a bug.
  Match a reference's structure and controls, not its pixels; copy
  [`apps/shelf`](https://github.com/expo/exact/blob/41ded8c5ede0b2959ef0daa83b1ff78545dd4428/apps/shelf/app.contract), the recipe, and run `bun
  scripts/no-tells.mjs <app>`, which lists every literal colour, font size and weight
  left. (Exact-new iOS app feedback, 2026-10-04; LLP 1115.)
- **Dark mode is unreadable: white text on a light card, labels lost on a light page.**
  Cause: a brand written as hex on a page, a card or text (`#f3f5f1`, `#ffffff`,
  `#18392d`); it stays the same in dark mode while the platform's text and controls
  turn dark. Four of round 4's five hex-heavy bake-off apps broke so. Fix: write no
  colour (the accent is the platform's blue; a brand is an `app.forma`); surfaces and text
  are roles (`-exact-label`) or unsaid. Look in both schemes: `"prefer prefers-color-scheme dark"` as a drive's
  first op, or `prefer prefers-color-scheme dark` before a test's first
  observation. A later `prefer prefers-color-scheme light` switches back.
  (LLP 1116.002 D1.)
- **A card is white on a white page in light mode.** Cause:
  `-exact-secondary-grouped-background` (white in light) on a plain page (white), as
  start-here once suggested; two round-5 apps' cards vanished so. Fix: surfaces in
  pairs. A card on a plain page is `-exact-secondary-background` (light grey, dark
  grey); on a `-exact-grouped-background` page (light grey, black) it is
  `-exact-secondary-grouped-background` (white, dark grey); a surface inside a card is
  the tertiary role of its pair (`-exact-tertiary-background`,
  `-exact-tertiary-grouped-background`). (LLP 1116.003 D3.3.)
- **The agent's screenshots and tree don't show the native bars.** Under
  `scripts/agent.mjs` the navigation bar, tab bar, `UIMenu`s and header search are
  not presented; the authored header, tablist and popover paint instead, by default.
  To see the bars, the tab bar and sheets as a person does, drive with `--chrome
  platform` and take `screenshot out.png window`; menus stay the agent's popovers
  there (on the Mac, a `role="menu"` popover is painted with its rows 5 points
  inside its box, as an `NSMenu`'s items are, on each side its author wrote no
  padding for, and on AppKit's menu panel where its author wrote no surface in
  any state; a person gets the `NSMenu`, which draws none of the rows' own
  colours). On the Mac the same switch shows a `dialog` and a modal route as
  sheets and a popover
  that is no menu as AppKit's popover; each is a window of its own, so a plain
  `screenshot` (the viewport's own drawing) leaves it out and says so
  (`notShown`). An iOS launch no driver reaches (`simctl launch` with
  `EXACT_AGENT=1` and `EXACT_AGENT_FAIL_FETCH`, no socket) shows the native bars
  and menus, its fetches still failing. (Signal Clone, builds 5 and 10; Splitter,
  rough 4 and 11; Recipe Finder, round 27.)
- **A header with more buttons than the bar has room for loses the rest to UIKit's
  overflow menu.** UIKit shows the first buttons as bar items and lists the others
  under a More (…) button: a 402-point bar showed a symbol and two worded buttons
  of 33. Under `--chrome platform` a `tap` on one of the others is refused (`its bar
  item is in the navigation bar's overflow menu`): the driver does not open that
  menu. Fix: write only the buttons that fit, and put the rest in one menu button
  (a `button` with a `popovertarget`). (#738; iPhone 17 Pro and iPad Pro 11-inch
  simulators, iOS 27.0, 2026-11-16.)
- **An `EmptyState`'s button sits at the bottom of the screen.** Cause: the part
  takes the free height it is given, so a `button` written after it lands at that
  space's foot. Fix: indent the button under the `EmptyState` call, its slot.
  (Recipe Finder, round 27.)
- **An overlay's backdrop stops at the navigation or tab bar.** Cause: content
  inside a route draws under the native bars. Fix: render full-screen overlays
  (menus, action sheets) as root children after the tab container, or as a
  `navigationPresentation="fullscreen"` route. (Signal Clone, build 10.)
- **A full-screen route on iOS shows bands above and below its content.**
  Cause: the host keeps the route's content clear of the status bar and the home
  indicator (LLP 1123 D3), so a child at `position="absolute" inset=0` starts
  below the status bar and ends above the home indicator. Where the route paints
  nothing, the bands show the nearest ancestor that paints a background, else
  the platform background (the theme's page ground when set).
  `system-bars-hidden=true` leaves them on a phone with a notch
  or Dynamic Island, whose insets stay when the bars hide. Fix, where the
  content needs only a backdrop: give the route's own column the background
  (`background-color`, with `color-scheme="dark"` for a photo viewer): it fills
  the screen to its edges, and where it is translucent, or fades out, the page
  the route covers shows through. Fix, where the content itself must reach the
  screen's edges (a full-screen canvas, a camera, a map): put
  `-exact-safe-area="none"` on the route and place its controls
  with `var(--exact-safe-area-inset-*)`, which still reads the route's insets.
  (Excord's image viewer, 2026-10-27; #759, iPhone 12 and iPhone 17 Pro
  simulators, iOS 27.0, 2026-11-16.)
- **A Mac glass panel shows sharp content behind a wrapper.** AppKit's
  `backdrop-filter` samples only the parent's subtree, even when every wrapper
  is transparent. Make the glass a direct sibling of what it covers; put a
  floating composer beside its scrolling transcript. CSS `backdrop-filter`
  does not select the native-glass viewport path, so check its compositor blur
  with `agent macos "screenshot glass.png window"`. Only native Liquid Glass
  (`backgroundMaterial="glass"`, an `NSGlassEffectView`) selects the
  WindowServer viewport path. `backgroundMaterial="sidebar"` and the other
  `NSVisualEffectView` materials do not. If the WindowServer has no picture,
  the viewport restores canvas readbacks, falls back to the ordinary
  layer-tree capture and notes that glass was not composited. A capture
  flushes, waits two display refreshes and reads the window without inserting
  any view into it. The server's empty picture cannot distinguish a locked
  screen from a sleeping display.
  (T3 Code backdrop case B; LLP 1053.000 §3.)
- **A link in the app's own scheme never matches.** `signalclone://connect?x=1`
  reaches the root's `navigate` handler as the location `/connect?x=1`: the scheme
  is dropped and the host becomes the first path segment (`location_of`, LLP 1038
  §3). `signalclone:///connect?x=1` and `signalclone:/connect?x=1`, with no host,
  are `/connect?x=1` too. Fix: match on the path (`location.startsWith("/connect?")`),
  not the URL.
  (Signal Clone, phone path.)
- **VoiceOver reads the screen behind a full-screen overlay.** A call screen
  or menu drawn as a root child above the bars hides the chat list from sight,
  not from VoiceOver: it still reached the rows and the native tab bar behind.
  Fix: a route with `navigationPresentation="fullscreen"`, which UIKit presents
  over the bars with the page under it inert; or `aria-modal=true` on the overlay's
  root (LLP 1080.003), so on iOS its siblings, the tab container and its bars among
  them, are skipped while it shows. (Signal Clone, build 13.) Not `role="dialog"`
  on the box, which gets no dialog behaviour (`lower-dialog-role`), nor
  `role="alertdialog"` on content you lay out: see the next entry.
- **`role="alertdialog"` refuses a dialog laid out in a `column`.**
  `lower-alertdialog: … a `column` row is not text, an action or the cancel`.
  Cause: an `alertdialog` popover or `dialog` is a native confirmation (LLP
  1021, LLP 1115 D6: iOS's alert or sheet, macOS's menu), whose rows can only be text, buttons that
  close it, one cancel, and, in the alert's shape, text fields (a rename prompt's `input`).
  Fix: a modal you lay out yourself is a sheet, a route
  with `navigationPresentation="modal"` (recipes/navigation-stack.md); keep
  `alertdialog` for a flat list of text, fields and buttons. (x2apps onboarding's Delete
  account?, 2026-10-04.)
- **`tabIndex` on a module tag is refused.** `` `paint-surface` has no attribute
  `tabIndex`; `tabIndex` is spelled `tabindex` here ``. Cause: HTML's
  `tabindex` is now an attribute on every element and module tag's box (LLP
  1088 D7.3), with no DOM-property alias. Fix: write `tabindex` (x2apps paint,
  2026-10-04).
- **Under `viewport-fit="cover"`, a route clears its insets twice.** A route
  is cleared of its whole safe area, the status bar and the home indicator
  included (LLP 1123 D3), and the clearance adds to padding that does not read
  the inset: `env(safe-area-inset-top)` on a header or a box inside the route adds
  the status bar a second time. Fix: pad the route column itself with
  `env()` or `var(--exact-safe-area-inset-*)` (credited, so it counts once), drop the
  inner padding, or opt those edges out with `-exact-safe-area` on the route and keep
  padding them yourself, as the web needs (`-exact-safe-area="left right"` for a page
  whose boxes pad the sensor housing). (Signal Clone, build 5; LLP 1123 D3,
  2026-11-12.)
- **A full-bleed picture stops at an iPhone Duo's side bar.** A hero under
  `navigationBar="transparent"` filled the width on an upright phone; on an unfolded
  Duo it stopped 84 points short of the right edge, with a strip of the page's colour
  beside the status bar. Cause: a route clears its sides as it clears its bars (LLP
  1123 D3), and a picture is content. Fix: `-exact-safe-area="left right"` on the
  route, and `var(--exact-safe-area-inset-left)` and `-right` as padding on the boxes
  that hold text and controls, so the picture and the backgrounds reach the edge and
  the words stay inside. The opposite mistake has the same repair: a route that says
  `-exact-safe-area="none"` for a colour that fills the screen, and pads only the top
  and bottom, draws its words under the side bar; the build names that one
  (`lower-safe-area-unpadded`). (On View, 2026-11-29.)
- **A banner at the root of a tabbed app stays under the status bar on iOS.** A
  root-level `position="absolute" top=0` box padded with `env(safe-area-inset-top)`
  is drawn at y 0, and one at `top="calc(env(safe-area-inset-top) + 8px)"` at y 8.
  Cause: under the default `viewport-fit="auto"`, a root that holds a native
  container (a root `tablist`, a navigation stack) covers the whole screen so its
  bars reach under the status bar, but `env()` stays 0; the host clears each route's
  content of the status bar and its bars instead, by padding the route or by UIKit's
  inset on its scroller (LLP 1123 D1). The same `env()` padding inside a route only
  seems to work: it adds 0 to that clearance. Fix: pad or place the banner with
  `var(--exact-safe-area-inset-top)`, which outside every route is the screen's
  inset and inside a route that route's own, its bars included (LLP 1123 D9):
  `top="calc(var(--exact-safe-area-inset-top) + 8px)"`. (euxy port's "COPY SAVED"
  notice, 2026-10-21.)

- **After a relaunch on iOS, a form opens with old values and ignores the fresh answer.**
  While the data module is not ready, a native host (and the wasm web target) can make
  the form's child from the resource's kept answer: a device-state reader's last small
  answer for the same arguments. A child's states start once, so the fresh answer does
  not reset them, and a write the resource did not hear about leaves that kept answer
  old. The default web JS target keeps none, so a web run never shows it. Fixes: [the
  agent guide](https://exact.expo.dev/learn/contract-for-agents/composition-and-lifetime.md), the form that edits a
  saved record (refresh the resource after each write, or key the child by a string or
  number from the answer). (Authoring bench, LLP 1087, ios19, ios22 and ios32
  t7-wizard, 2026-10-05/06.)
- **A screen keyed on the signed-in user shows its kept answer on some relaunches only.**
  A kept answer whose identifying argument is still `""` or `none`, or reads a
  device-state resource on its placeholder, waits (`logs`: `feeds's kept answer is
  waiting for its identifying arguments`) and shows when the argument reaches the
  value it was kept for. Once the data module is ready, the resource is asked for the
  empty id meanwhile; if that answer lands before the id, it is kept in the entry's
  place and the id's arrival has nothing to show. An id from a resource that reads
  no device state, on a placeholder that is not empty (`"nobody"`), is a known
  mismatch, which `logs` names with the resource it read but never with either
  identifying value. A resource whose `when` stays false until the id is set asks
  nothing for the empty id, so its kept answer still waits. (A React Native port's
  diaries, 2026-11-13; `runner/src/runner/kept_identity_tests.rs`.)
- **A grouped-list row you lay out loses its side insets, or its content runs off the
  card.** Cause: the sheet gives a custom row (a `row` that is not a title/value row)
  its padding, and `padding="12px 0"` replaces all four sides, so the row's content
  starts and ends at the card's edge; a `row`'s children are a flex row, so a `column`
  or a bar inside takes no width either. Fix: put the content in a `column flex=1`
  (`apps/shelf`'s Progress and Yearly Goal rows), which the sheet keeps 15 from the
  card and the separator, or make the row itself a `column`, which stacks its children
  (LLP 1116 D2); to choose that space write the row's `padding-top`/`padding-bottom`
  only, which replaces the column's. A plain column of one or two texts becomes
  a standard subtitle cell on iOS. An authored height, background colour or
  corner radius on the row or column keeps its views; a subtitle column's
  `min-height` does too, as does `align-items` or `justify-content` on either
  a nested column or a row laid out as a column. Such nested columns get no
  subtitle block padding for a literal box value or a ternary arm that writes
  one; a `none` arm keeps the platform padding. Other expressions keep that
  padding because they may evaluate to `none`; write explicit padding to control it.
  The platform's interline gap stays. A column with `height=300` and no authored
  padding or border has a 300 pt border box. Classes count too. (Shelf recipe; grouped tile, #327.)
- **On iOS, a custom grouped row's leading symbol and line differ from a standard row's
  right to left or at an accessibility size.** Cause: a row the platform's cell can't
  express (a badge before its chevron) is its own views carried into the cell; iOS draws
  its leading symbol as a standard cell's image and starts its line under its content,
  but right to left its views are not mirrored, so the line stays UIKit's own, and at an
  accessibility size the sheet's symbol slot (24 by 20) doesn't grow, so the symbol keeps
  its slot's size. Both are QUEUE'd; nothing to write differently. (Harmony, 2026-10-21.)
- **A text field or `textarea` in a grouped-list row written `appearance="none"` reads
  as plain text on the web.** Cause: `appearance="none"` is the author's bare box on
  every host: on a desktop page an 18 px line with no border or background, a small
  target ("inputs read as plain text", bake-off round 7). Fix: leave the field unsaid.
  Each host draws its field in a row: iOS borderless in its cell, which is the field (a
  tap anywhere in the row reaches it), the web and macOS a field with its line, corners
  and height (LLP 1116.005 D2), as `apps/shelf`'s add sheet shows. (Shelf recipe,
  2026-10-10; round 7, 2026-10-11.)
- **A `popover="auto" role="menu"` styled with a literal `background-color` for the web
  keeps that fill on Android.** Cause: Android's projected dropdown menu honors an
  explicitly written `background-color` and uniform circular `border-radius` on the menu
  popover container (LLP 1115.001 D10), deriving legible ink from the fill's luminance;
  if you write a hardcoded light color such as `#ffffff` solely for the browser, Android
  will paint a light menu in dark mode too. Fix: omit `background-color` to inherit the
  platform's Material surface, or use `light-dark(...)` / system color roles so light and
  dark modes both look right. Non-uniform or elliptical `border-radius` falls back to
  Material's 4 dp and logs once. (LLP 1115.001 D10, #1956.)
