Skip to content

Use native Liquid Glass for sidebar footer buttons - #129

Merged
austin-smith merged 1 commit into
mainfrom
fix-sidebar-footer-glass-buttons
Jul 12, 2026
Merged

Use native Liquid Glass for sidebar footer buttons#129
austin-smith merged 1 commit into
mainfrom
fix-sidebar-footer-glass-buttons

Conversation

@austin-smith

@austin-smith austin-smith commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Problem

The sidebar footer buttons (Manage Servers, Settings) had no press feedback and didn't behave like native glass buttons. The "glass" was a hand-painted Circle().fill(Color(.tertiarySystemBackground)) with a manual drop shadow, and .buttonStyle(.plain) opted out of all system press feedback — so taps were visually dead.

Fix

Replace the fake material with the native Liquid Glass API:

  • .glassEffect(.regular.interactive(), in: .circle) on a 44×44 label — .interactive() provides the native press shimmer/scale
  • Both buttons wrapped in a GlassEffectContainer per Apple guidance for multiple glass elements
  • Manual shadow removed; the material handles dark-mode separation itself

The 44pt explicit size matches system toolbar item metrics (the main view's bottom-bar buttons), since standalone glass button styles don't hit that metric at any control size (regular ≈ 32pt, large ≈ 50pt).

Verification

Built and ran on an iPhone 17 Pro simulator (iOS 26.5), screenshotted the open drawer, and measured cropped regions: footer buttons and the native bottom-bar filter button both measure ~130px (≈44pt @3x) with matching icon proportions.

The footer circle buttons faked glass with a tertiarySystemBackground
circle and manual shadow under buttonStyle(.plain), which suppressed
all press feedback. Replace with glassEffect(.regular.interactive())
in a circle at 44pt to match native toolbar button metrics, wrapped
in a GlassEffectContainer.
@austin-smith
austin-smith merged commit 82b4156 into main Jul 12, 2026
3 checks passed
@austin-smith
austin-smith deleted the fix-sidebar-footer-glass-buttons branch July 12, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant