swiftui-liquid-glass

Implement and review SwiftUI Liquid Glass UI with iOS 26 APIs.

Updated Aug 5, 2025
One-click install
npx skills add https://github.com/DishaAnand/FocusNest --skill swiftui-liquid-glass-dishaanand
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftui-liquid-glass
Source: https://github.com/DishaAnand/FocusNest/tree/main/.agents/skills/swiftui-liquid-glass
Command: npx skills add https://github.com/DishaAnand/FocusNest --skill swiftui-liquid-glass-dishaanand

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers implement and review SwiftUI Liquid Glass UI using iOS 26+ APIs.

Core Features & Use Cases

  • Review and adopt Liquid Glass in SwiftUI apps, ensuring proper use of native glass APIs.
  • Use GlassEffectContainer to group multiple glass views for better performance and morphing.
  • Apply .glassEffect modifiers after layout/appearance modifiers and gate features with #available(iOS 26, *).
  • Leverage interactive() to enable touch/pointer interactions on glass elements.
  • Utilize glassEffectID with a @Namespace to support morphing transitions between views.
  • Apply built-in button styles like .glass and .glassProminent for actions.

Quick Start

Create a SwiftUI view that demonstrates a glass-backed label and a glassy button inside a GlassEffectContainer; assign unique glassEffectID values to enable morphing, and ensure the view gracefully falls back on earlier iOS versions.

Frequently Asked Questions about swiftui-liquid-glass

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement Liquid Glass UI in SwiftUI?

Use the .glassEffect modifier after layout and appearance modifiers to implement Liquid Glass UI in SwiftUI. Group multiple glass views inside a GlassEffectContainer to optimize rendering performance and enable morphing transitions.

What is GlassEffectContainer and when should I use it in SwiftUI?

GlassEffectContainer is a SwiftUI view that groups multiple glass elements to improve rendering performance and enable morphing. Use it whenever you have multiple Liquid Glass views that need to transition smoothly between different states.

How do I create morphing transitions between Liquid Glass views?

Create morphing transitions by applying the glassEffectID modifier with matching identifiers and a @Namespace to your Liquid Glass views. This allows SwiftUI to animate the glass effect smoothly when views transition between different states.

Does Liquid Glass work on older iOS versions or is iOS 26 required?

Liquid Glass requires iOS 26 or later, so you must use #available(iOS 26, *) to check availability. Provide a graceful fallback UI for earlier iOS versions to ensure your SwiftUI app remains functional across all supported devices.

How do I add touch interactions to Liquid Glass elements in SwiftUI?

Add touch and pointer interactions to Liquid Glass elements by applying the interactive() modifier to your glass views. You can also use built-in button styles like .glass and .glassProminent for standard interactive actions.

Why are my SwiftUI glass effect modifiers not displaying correctly?

Glass effect modifiers may not display correctly if applied before layout or appearance modifiers. Always apply .glassEffect after other modifiers, wrap multiple glass views in a GlassEffectContainer, and verify your deployment target supports iOS 26.