You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: make the Liquid Glass effect opt-out via AlertStyle (#6)
The glass background (added for iOS/macOS 26) is now controllable through
a new `useGlassEffect` parameter on `AlertStyle.style(...)`:
- `nil` (default) / `true`: use Liquid Glass when running on iOS/macOS 26+
- `false`: always keep the classic solid-color / BlurView background
This lets apps whose design doesn't suit Liquid Glass opt out while
keeping glass on by default where available. Addresses the "I'd prefer
to have this be optional" feedback on elai950#112.
The new associated value defaults to nil, so existing `.style(...)`
call sites remain source-compatible. Also refreshed the README
AlertStyle reference (it was missing activityIndicatorColor too).
Co-authored-by: gambit1185_church <patrickmayo@churchofjesuschrist.org>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
> **Liquid Glass:** on iOS 26 / macOS 26+ the toast background uses the native Liquid Glass material by default. To keep the classic solid-color / blur background, pass `useGlassEffect: false` in the style.
0 commit comments