Native iPad interface: sidebar navigation + responsive grids#1757
Open
MoreBlood wants to merge 1 commit into
Open
Native iPad interface: sidebar navigation + responsive grids#1757MoreBlood wants to merge 1 commit into
MoreBlood wants to merge 1 commit into
Conversation
Adapt AltStore for iPad without changing the iPhone UI: - TabBarController: on iPad (iOS 18+) present the tabs as a native sidebar (UITabBarController.mode = .tabSidebar) tiled beside the content; iPhone keeps the bottom tab bar. Navigation/deep links go through identity-based UITab lookup when the sidebar is active. - My Apps: replace the storyboard flow layout with a compositional layout so the installed-apps grid has even gaps and adapts its column count to width (1 on iPhone, 2-3 on iPad); update cards and section headers/footers are preserved. - Sources: compositional adaptive grid + centered empty-state text. - Browse: more columns / wider cards at regular width. - News: constrain the feed to a centered readable column and match the footer banner width to the news cards. - Header detail pages: shorter hero at regular width. - Enable iPad in TARGETED_DEVICE_FAMILY for the app target.
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
Adapts AltStore for iPad with a native sidebar and width-responsive grids, without changing the iPhone UI — everything is gated on idiom / size class / a max content width, so compact widths are untouched.
Screenshots
iPad Pro, landscape — the tabs become a native sidebar tiled beside the content.
What changed
UITabBarController.mode = .tabSidebar) tiled beside the content; iPhone keeps the bottom tab bar. Deep links / programmatic selection use identity-basedUITablookup when the sidebar is active.UICollectionViewCompositionalLayoutso the installed-apps grid has exactly even gaps and adapts its column count to width (1 on iPhone, 2–3 on iPad). Update cards stay self-sizing; section headers / App IDs footer are reproduced as boundary supplementary items.TARGETED_DEVICE_FAMILY = "1,2"on the app target.Testing
Notes for review
.tabSidebarpresentation is iOS 18+; on iPad running iOS 17 the app falls back to the existing tab bar..zerobehavior). Happy to add an invisible anchor header if you'd prefer that be unconditional.