Skip to content

iOS apps: screens as designed on iOS 12, and a layout check for every device size - #180

Merged
henrikklee merged 4 commits into
mainfrom
companion-layout
Dec 5, 2026
Merged

henrikklee merged 4 commits into
mainfrom
companion-layout

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

On iOS 12 the app on the iPad showed its Storage access page as a column a few letters wide, with Continue pushed off the screen: the user had nothing to tap. The page's widths were only a preference that iOS 12 resolved differently from current iOS, which is why the simulator never showed it.

  • The companion's screens and the in-app installer's now give every text a definite width; screens taller than the display scroll (phones on their side), and the installer's dialogs scroll there too.
  • A layout check lays out every screen of both apps at every iPhone, iPod touch and iPad size, upright and on its side. It fails on any text whose width is left to iOS (the iOS 12 fault, caught on any iOS), text broken mid-word or cut off, and anything off screen. Pull requests that touch either app run it (Check the iOS screens' layout, Intel Mac).

Local: both checks pass (companion/build.sh --check-layout, ios-installer/build-simulator.sh --check-layout); the old companion code fails the check exactly on the texts from the device photo; the device sources typecheck for iOS 12.

Assisted-by: LLM

On iOS 12 the companion's Storage access page drew its text a few letters
wide and pushed Continue off the screen: the steps and the notice were 500
points wide only by a preference that tied with the text's own wish to be
narrow, and iOS 12 broke the tie the other way from iOS 18.

The companion's screens are now a column of blocks exactly as wide as the
column (500 points, or what the margins leave), screens taller than the
window scroll, and the margin follows the window rather than the screen.
The in-app installer's scroll height, its Install button beside the
offline line (iPad) and its dialogs on a phone on its side get the same.

companion/App/LayoutCheck.swift lays every screen of both apps out at
every iPhone, iPod touch and iPad size, upright and on its side, and fails
on a wrapping text whose width moves when its own preference does (what
broke on iOS 12, found on any iOS), on text broken inside a word or cut
off, and on anything off the screen. companion/build.sh --check-layout and
ios-installer/build-simulator.sh --check-layout run it; pull requests that
change either app run both.

Assisted-by: LLM
…request

Without a booted simulator the device lookup ended the script silently
(grep found nothing under pipefail), as on the CI's Mac.
ORCHARD_LAYOUT_SHOTS=DIR saves every screen at every upright size.

Assisted-by: LLM
An iPad is regular both ways, a phone compact across and compact high on
its side; screens that follow the size class are checked as they show.

Assisted-by: LLM
The footer was pinned to the bottom of the window, over a screen taller
than the window (an iPod touch, a phone on its side). It is now part of
what scrolls: at the bottom where there is room, after the screen where
there isn't. The layout check runs once the app has launched, as iOS
ends an app whose launch takes as long as the check does on a slow Mac.

Assisted-by: LLM
@henrikklee
henrikklee merged commit 150d579 into main Dec 5, 2026
12 checks passed
@henrikklee henrikklee mentioned this pull request Dec 5, 2026
@henrikklee
henrikklee deleted the companion-layout branch December 5, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant