What problem does it solve?
It helps you implement and maintain SwiftUI Liquid Glass effects without visual glitches, incorrect layout, or missing iOS 26 fallbacks.
Core Features & Use Cases
- Apply Liquid Glass correctly: Use
.glassEffect() with the right shape and modifier order so the effect matches the final view frame.
- Compose glass efficiently: Group multiple glass surfaces with
GlassEffectContainer to improve rendering consistency and transitions.
- Enable morphing transitions: Animate glass shapes during view insertion/removal using
glassEffectID(_:in:), glassEffectUnion(id:namespace:), and appropriate transitions.
- Build touch-friendly glass controls: Style primary and standard actions with
.buttonStyle(.glass) / .buttonStyle(.glassProminent) and add .interactive() only where it makes sense.
- Use iOS 26 edge & background helpers: Combine scroll edge effects and split-view background extension with Liquid Glass-based UI elements.
- Ship with safe availability gating: Provide fallbacks for iOS versions earlier than 26.
Quick Start
Implement Liquid Glass for a custom card by gating with if #available(iOS 26, *), applying your layout modifiers first, then calling .glassEffect() with a tuned shape and using GlassEffectContainer for multiple glass elements.