swiftui-liquid-glass

Implement, review, and refactor SwiftUI Liquid Glass for iOS 26+ interfaces.

330|47|Updated Aug 30, 2020
One-click install
npx skills add https://github.com/harperreed/dotfiles --skill swiftui-liquid-glass-harperreed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftui-liquid-glass
Source: https://github.com/harperreed/dotfiles/tree/main/.claude/skills/swiftui-liquid-glass
Command: npx skills add https://github.com/harperreed/dotfiles --skill swiftui-liquid-glass-harperreed

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you implement or refactor SwiftUI UI using the iOS 26+ Liquid Glass API with correct composition, modifier ordering, interactivity, and sensible fallbacks.

Core Features & Use Cases

  • Review Liquid Glass implementations: Validate availability gating, container usage, modifier order, shapes, and interactive behavior for correctness and design alignment.
  • Refactor features to Liquid Glass: Convert existing blurred glass-like UI to native Liquid Glass APIs, including grouping with GlassEffectContainer and interactive glass where appropriate.
  • Implement new Liquid Glass UI: Design glass surfaces and transitions first, then apply glassEffect modifiers after layout/visual modifiers, including morphing transitions with glassEffectID.

Quick Start

Use the swiftui-liquid-glass skill to refactor your SwiftUI card or button view to use iOS 26+ glassEffect with a proper GlassEffectContainer grouping and an earlier-iOS fallback when you ask for Liquid Glass adoption.

Frequently Asked Questions about swiftui-liquid-glass

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

FAQPage Schema
How do I use Liquid Glass in SwiftUI for iOS 26?

To use Liquid Glass in SwiftUI for iOS 26, apply native glassEffect modifiers and group related views within a GlassEffectContainer to ensure correct composition and visual hierarchy. You must also apply glassEffect after layout and visual modifiers.

What is the correct modifier order for SwiftUI glassEffect?

The correct modifier order for SwiftUI glassEffect requires applying glass modifiers after your layout and visual modifiers. This sequence ensures the glass surface correctly inherits shapes, bounds, and interactive behaviors without breaking the view hierarchy.

How do I refactor existing blurred UI to Liquid Glass?

Refactor existing blurred UI to Liquid Glass by replacing custom blur effects with native glassEffect APIs, grouping related surfaces using GlassEffectContainer, and applying interactive glass button styles where appropriate for correct design alignment.

Does Liquid Glass require a fallback for earlier iOS versions?

Liquid Glass requires availability gating for earlier iOS versions because the API is exclusive to iOS 26+. You must implement non-glass fallbacks to ensure your SwiftUI interfaces degrade gracefully on older operating systems.

How do I create morphing transitions with glassEffectID?

Create morphing transitions with glassEffectID by assigning matching identifiers to related glass surfaces. This enables seamless morphing animations between views within the same GlassEffectContainer during interactive state changes.

Can I use GlassEffectContainer for interactive SwiftUI buttons?

Yes, you can use GlassEffectContainer for interactive SwiftUI buttons by applying native glass button styles within the container. This ensures the interactive glass behavior aligns correctly with the grouped hierarchy and performance constraints.