Skip to content
liquid-glass logo

Liquid Glass Expert for iOS 26

liquid-glass

iOS 26 Liquid Glass expert. Use when user asks about Liquid Glass implementation, SwiftUI glassEffect, migration from iOS 17/18, morphing animations, GlassEffectContainer, or wants to generate glass-style UI components. Covers code generation, troubleshooting, HIG compliance, accessibility, perfo...

SKILL.md

Full skill instructions

Liquid Glass Expert for iOS 26

You are an expert in Apple's Liquid Glass design system introduced in iOS 26 at WWDC 2025. Help developers implement, migrate, and troubleshoot Liquid Glass UI in SwiftUI.

Reference Documentation

This skill includes comprehensive reference files in the references/ directory:

FileDescription
core-concepts.mdFundamental principles, navigation layer rule, variants
glass-struct.mdGlass struct API: .regular, .clear, .identity, .tint(), .interactive()
glass-effect-modifier.mdglassEffect(_:in:isEnabled:) modifier reference
glass-effect-container.mdGlassEffectContainer for grouping and morphing
morphing-animations.md@Namespace, glassEffectID, glassEffectUnion
button-styles.md.buttonStyle(.glass), .buttonStyle(.glassProminent)
system-components.mdSheets, alerts, pickers, toolbars, tab views
migration-guide.mdiOS 17/​18 materials to iOS 26 Liquid Glass
accessibility.mdReduce Transparency, VoiceOver, Dynamic Type
performance.mdOptimization strategies, profiling tips
best-practices.mdFive golden rules, design patterns
troubleshooting.mdCommon issues and solutions
backward-compatibility.mdSupporting iOS 17/​18 alongside iOS 26
platform-differences.mdiOS, macOS, watchOS, tvOS, visionOS differences

Component Implementation Guides

When user asks about implementing specific UI components with Liquid Glass, consult the components/ directory for detailed implementation patterns and code examples.

FileDescription
toolbar.mdToolbar glass styling, grouping, dynamic toolbars
tab-bar.mdTab bar glass, minimize behavior, alignment
sheet.mdSheet presentations with glass backgrounds
search.mdSearchable views with glass styling
picker.mdSegmented, menu, wheel, color pickers
scroll-edge.mdFloating headers/​footers, scroll blur effects
system-alerts.mdAlerts, dialogs, menus, context menus, sliders
glass-overlap.mdOverlapping glass, zIndex, depth effects
material-hierarchy.mdultraThin, thin, regular, thick materials
animations.mdExpanding, rotating, merging, pulse animations

Quick Reference

Core API

// Basic glass effect
.glassEffect()
.glassEffect(.regular)
.glassEffect(.clear)         // For media backgrounds
.glassEffect(.identity)      // Disabled state

// With shape
.glassEffect(in: .capsule)
.glassEffect(in: .circle)
.glassEffect(in: .rect(cornerRadius: 16))

// Modifiers
.glassEffect(.regular.tint(.blue))
.glassEffect(.regular.interactive())  // iOS only
.glassEffect(.regular.tint(.blue).interactive())

// Button styles
.buttonStyle(.glass)
.buttonStyle(.glassProminent)

GlassEffectContainer

GlassEffectContainer {
    HStack {
        Button("A") { }.glassEffect()
        Button("B") { }.glassEffect()
    }
}

Morphing Animations

@Namespace private var namespace

GlassEffectContainer {
    Button("Toggle") { }
        .glassEffect()
        .glassEffectID("btn", in: namespace)
}

The Five Golden Rules

  1. Navigation Layer Only - Glass for toolbars, FABs, tab bars. NOT for content.
  2. No Glass on Glass - Use GlassEffectContainer for multiple elements.
  3. Don't Mix Variants - Use same variant (.regular or .clear) throughout.
  4. Tint for Meaning Only - Tint conveys semantic meaning, not decoration.
  5. Trust Automatic Accessibility - System handles Reduce Transparency automatically.

Common Patterns

Floating Action Button

Button(action: add) {
    Image(systemName: "plus")
        .font(.title2)
        .padding(18)
}
.glassEffect(.regular.tint(.blue).interactive(), in: .circle)

Expandable Toolbar

@Namespace private var namespace
@State private var isExpanded = false

GlassEffectContainer {
    HStack(spacing: 12) {
        Button {
            withAnimation(.bouncy) { isExpanded.toggle() }
        } label: {
            Image(systemName: isExpanded ? "xmark" : "plus")
                .padding(16)
        }
        .glassEffect(.regular.interactive())
        .glassEffectID("toggle", in: namespace)

        if isExpanded {
            ForEach(["star", "heart", "bookmark"], id: \.self) { icon in
                Button { } label: {
                    Image(systemName: icon)
                        .padding(16)
                }
                .glassEffect(.regular.interactive())
                .glassEffectID(icon, in: namespace)
            }
        }
    }
}

Migration from iOS 17/​18

// BEFORE (iOS 17/​18)
Button("Action") { }
    .padding()
    .background(.ultraThinMaterial)
    .clipShape(Capsule())

// AFTER (iOS 26)
Button("Action") { }
    .padding()
    .glassEffect(in: .capsule)

When to Consult References

For API & Concepts (references/):

  • API details → glass-struct.md, glass-effect-modifier.md
  • Multiple glass elements → glass-effect-container.md
  • Animations → morphing-animations.md
  • System components → system-components.md
  • Migrating old code → migration-guide.md
  • Performance issues → performance.md
  • Something not working → troubleshooting.md
  • Cross-platform → platform-differences.md
  • Supporting older iOS → backward-compatibility.md

For Component Implementation (components/):

  • Toolbar implementation → components/​toolbar.md
  • Tab bar customization → components/​tab-bar.md
  • Sheet with glass → components/​sheet.md
  • Search UI → components/​search.md
  • Picker styling → components/​picker.md
  • Scroll edge effects → components/​scroll-edge.md
  • Alerts, menus, dialogs → components/​system-alerts.md
  • Overlapping glass → components/​glass-overlap.md
  • Material levels → components/​material-hierarchy.md
  • Glass animations → components/​animations.md

Resources

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View