Back to Skills

swiftui-liquid-glass

Implement, review, or improve SwiftUI Liquid Glass effects for iOS 26+. Covers glassEffect modifier, GlassEffectContainer, glass button styles, glass toolbar, glass tab bar, morphing transitions, translucent material, vibrancy, tinting, interactive glass, ToolbarSpacer, scrollEdgeEffectStyle, backgroundExtensionEffect, and availability gating. Use when asked about Liquid Glass, glass buttons, glassEffect, GlassEffectContainer, GlassEffectTransition, glassEffectID, glassEffectUnion, scroll edge e

741stars40forksUpdated 6/15/2026

Security Assessment

Safe(100/100)
Security Score100/100

About swiftui-liquid-glass

The SwiftUI Liquid Glass skill helps developers implement, review, and improve dynamic translucent glass effects introduced in iOS 26 and later Apple platforms. Liquid Glass is Apple's newest material design that creates beautiful blurred backgrounds with light reflection, color adaptation, and interactive responsiveness. This skill provides comprehensive guidance on adopting these modern UI patterns while maintaining backward compatibility with earlier iOS versions.

The skill covers the complete Liquid Glass API surface including the core glassEffect modifier, GlassEffectContainer for grouping glass elements, specialized button styles, and advanced features like morphing transitions and glass effect unions. It includes practical workflows for implementing new features, modernizing existing interfaces, and reviewing code for best practices. Developers learn how to apply glass materials with different prominence levels, add color tints, enable touch interactions, and create smooth animated transitions between glass shapes.

This skill is essential for iOS developers building apps targeting iOS 26+ who want to adopt Apple's latest design language. It's particularly valuable for teams modernizing existing apps, UI/UX engineers implementing custom controls with glass materials, and developers reviewing pull requests that involve Liquid Glass APIs. The skill emphasizes proper API usage patterns, performance optimization through containers, availability gating for backward compatibility, and common pitfalls to avoid when working with translucent materials.

FAQ

What iOS version is required for Liquid Glass?

Liquid Glass requires iOS 26 or later (also iPadOS 26, macOS 26, tvOS 26, watchOS 26). You must gate usage with availability checks and provide fallbacks for earlier versions.

When should I use GlassEffectContainer?

Use GlassEffectContainer when you have multiple sibling views with glass effects. It enables shared rendering, performance optimization, blending between nearby shapes, and morphing transitions during animations.

What's the difference between .regular and .clear glass variants?

The .regular variant provides standard glass material with visible blur and tinting, while .clear offers a minimal tint variant for more subtle effects. Both blur background content but with different visual prominence.

How do I make glass elements interactive?

Apply the .interactive() modifier to Glass materials (e.g., .regular.interactive()) on tappable or focusable elements. This makes the glass react to touch and pointer interactions with visual feedback.

What are morphing transitions in Liquid Glass?

Morphing transitions smoothly animate glass shapes when views are inserted or removed from the hierarchy. Use glassEffectID(_:in:) to provide stable identity, and GlassEffectContainer automatically blends nearby shapes during animation when within the specified spacing.

All Files

2 files
references/liquid-glass.md11.4 KB
View
SKILL.md9.6 KB
View

Install swiftui-liquid-glass

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill