Repository navigation
iPhone Duo: screen-shaped resolutions, fold re-frame, working bar buttons - #624
Open
leewsimpson wants to merge 2 commits into
Open
leewsimpson wants to merge 2 commits into
leewsimpson wants to merge 2 commits into
Conversation
… working bar buttons On the iPhone Duo (iPhone19,4), a foldable with an inner 951x669 pt screen and an outer 466x678 pt one, Madeira built with the iOS 27 SDK runs natively and: - Resolution choices follow the screen the game is on. A device that has shown two screen shapes stores a "follow the screen" token for new entries and resolves it at launch (inner default 1152x808, outer 1152x792). Single-screen iPhones and iPads keep their values: check-duo-display compares them with a golden table recorded before this change. - A fold or unfold that keeps the orientation re-lays out the game layer and the touch controls (DisplayGeometry.changed), not only a rotation. - [display-geometry] log lines at launch and on every scene geometry or size class change. - The toolbar and tab-bar buttons work. On the Duo, iOS draws them in an 84 pt column inside the right safe-area inset, outside the safe-area-sized view that .handlesGameControllerEvents wraps the root in, so taps there reached nothing. The root now ignores the safe area outside that modifier; the navigation stack inside keeps it through UIKit. Tested on an iPhone Duo (iOS 27.2.1): library toolbar and tab bar on both screens. Host checks: check-duo-display (new), check-frontend, check-control-presets, check-library-zoom, check-game-recommendations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lee Simpson <leewsimpson@gmail.com>
The root ignores the safe area only on the iPhone Duo (iPhone19,4, or a simulator of it), the one device where the bar buttons were out of reach and the only one the change was tested on. Other iPhones and iPads keep their layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lee Simpson <leewsimpson@gmail.com>
|
Can we get examples (videos, images) of what was achieved since the iPhone Duo is still relatively new and I am unaware of anyone that has one. Maybe even another person to try this pull request out? |
|
Got a quick demo right here: https://streamable.com/8brk6c (good for 2 days, no idea how to best upload videos). Folding the device stops the recording for some reason, so “trust me bro” it works fine. I didn’t do substantial testing though, just a quick look. I’ll continue daily driving the build from this PR for the time being, will check back in a couple days. |
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.
Adds native support for the iPhone Duo (iPhone19,4), a foldable with an inner 951x669 pt screen and an outer 466x678 pt one. Built with the iOS 27 SDK, Madeira runs natively on it rather than letterboxed. On the Duo, the 0.2.0 IPA (iOS 26.5 SDK) still runs letterboxed.
Changes
DisplayGeometry.changed). Before, only a rotation did that.[display-geometry]log lines at launch and on every scene geometry or size-class change, so a log shows which screen a session ran on..handlesGameControllerEventswraps the root in, so taps there reached nothing: the buttons highlighted but never acted. On the Duo only (FoldableFillsWindow, keyed on the model code), the root now ignores the safe area outside that modifier. The navigation stack inside keeps the safe area through UIKit.Other devices
Other iPhones and iPads are unchanged.
check-duo-displaycompares the choices, defaults, 720-line sizes and MetalFX values for current iPhones and iPads with a golden table recorded before this change. The full-window change applies only on the Duo, because it is the only device it was tested on.Testing
check-duo-display(new), with the Duo screens as measured on the device;check-frontend,check-control-presets,check-library-zoomandcheck-game-recommendationsgain Duo cases;check-library-sections,check-pointer-geometryandcheck-doc-linksstill pass.No other device was available for a smoke test.
🤖 Generated with Claude Code