Repository navigation
fix(#331): make the Settings button respond on Mac - #332
Merged
Merged
Conversation
On Mac "Designed for iPad", the sidebar's Settings button did nothing when clicked. It sat with a Spacer inside an HStack in a single bottomBar ToolbarItem, and its action never fired. Give each button its own ToolbarItem and replace the Spacer with a ToolbarSpacer, so they are regular toolbar items. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Closes #331
Problem
On Mac ("Designed for iPad"), clicking the Settings gear in the sidebar did nothing. Other sidebar items worked. iPhone is not affected because it uses the tab bar instead of this sidebar.
Cause
The gear shared one
.bottomBarToolbarItemwith the MM Live button and aSpacer, wrapped in anHStack. On Mac its action never fired, and the gear rendered centered despite theSpacer. The link to the toolbar wrapper comes from the before and after behaviour, not from tracing the framework.Fix
Each button is now its own
ToolbarItem, and aToolbarSpacerreplaces theSpacer.Testing
swiftlint lint --strictpassesNot tested: clicking the MM Live button, which got the same change but did not appear during testing. No regression test was added, because this is toolbar layout in a view body.
🤖 Generated with Claude Code