Skip to content

App: Storage access pages and dialogs drawn as designed on every iOS, with a layout check - #46

Merged
henrikklee merged 2 commits into
mainfrom
ios12-layout
Dec 5, 2026
Merged

henrikklee merged 2 commits into
mainfrom
ios12-layout

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

Some sizes on the Storage access pages and dialogs were left for iOS to choose, and iOS versions choose differently. Laid out away from a device, Continue covered the whole page; the heading and the line under it could get any width from 0, the fault that made the companion's Storage access page unreadable on an iPad mini on iOS 12 (OrchardLinux/tools#180). Every such size is now fixed by the layout; the pages look as before.

App/LayoutCheck.swift (the same check as in tools) lays the Storage access pages and two dialogs out at every iPhone, iPod touch and iPad size, upright and on its side, with the device's size classes. It fails on any size left to iOS, broken or cut-off text, and anything off screen. scripts/check-layout.sh runs it; pull requests run it (job layout).

Local: the check passes (it fails 273 times on main); the app typechecks for iOS 12 and the Xcode simulator build succeeds; release checks pass.

Assisted-by: LLM

… checked

Several sizes on these pages were only preferences or lower bounds, so
iOS was free to choose them, and iOS versions choose differently: the
Continue button's height (laid out away from a device, it covered the
whole page), the heading and the line under it (any width from 0, the
companion's iOS 12 fault), the device line in the header, the dialogs'
text, the empty footer's height and the page's scroll width. Each is now
set by the layout.

App/LayoutCheck.swift (the check OrchardLinux/tools runs on its iOS apps)
lays the Storage access pages and two dialogs out at every iPhone, iPod
touch and iPad size, upright and on its side, with the device's size
classes, and fails on any of that, on broken or cut-off text and on
anything off the screen. scripts/check-layout.sh runs it in a simulator;
pull requests run it.

Assisted-by: LLM
On the CI's Intel Mac the check took longer than iOS lets a launch
take, so iOS ended the app before it printed anything.

Assisted-by: LLM
@henrikklee
henrikklee merged commit cfb3a3d into main Dec 5, 2026
2 checks passed
@henrikklee
henrikklee deleted the ios12-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