What problem does it solve?
This Skill helps developers correctly implement the new iOS 26 Liquid Glass material, ensuring proper placement, modifier ordering, and interactivity for a consistent and modern UI.
Core Features & Use Cases
- Apply
.glassEffect(): Understand where to use the glassEffect modifier on various UI elements like list rows, buttons, and toolbars.
- Placement Rules: Learn what elements are suitable for glass effects and which should remain opaque.
- Modifier Ordering: Crucially, understand the correct order of applying
glassEffect relative to other modifiers like padding.
- Interactivity Constraints: Differentiate between interactive and static glass effects.
- Grouping: Use
GlassEffectContainer for adjacent glass elements.
- Prominence & Tinting: Control the emphasis and color of glass effects.
- Use Case: Applying a subtle, interactive glass effect to a list row background while maintaining readability and correct visual hierarchy.
Quick Start
Apply the .glassEffect modifier with .regular prominence to a list row background, ensuring it's applied after padding.