Repository navigation
App: Storage access pages and dialogs drawn as designed on every iOS, with a layout check - #46
Merged
Merged
Conversation
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.shruns it; pull requests run it (joblayout).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