Repository navigation
Add adaptive sheet layout and safe-area demos for iPhone Duo - #72
Merged
Merged
Conversation
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.
Summary
Wide and folding windows currently stretch Rideau sheets across the host, and a presentation created at the closed size can leave its dimming view too narrow after expansion. Add an opt-in adaptive width policy that keeps the bottom-up presentation, limits and centers the sheet, and moves it into the leading region when a vertical division is active. The default remains
.fullWidth.RideauDemo. The safe-area demo colors usable/excluded regions and displays live window/content right insets. Support source-qualified preview launch arguments and demo rotation.Division handling is available on iOS 27.1 with the matching toolchain; earlier SDKs retain adaptive width and centering. The package's minimum deployment target and existing gesture implementation are preserved.
Validation
RideauDemoDebug build, install, and launch succeeded on the iOS 27.1 iPhone Duo Simulator with Xcode 27.1 Release Candidate.git diff --checkpassed.