LI

liquid-glass-developer

Provides implementation patterns for iOS 26 Liquid Glass visual effects, containers, and morphing transitions.

Install

mkdir -p .claude/skills/liquid-glass-developer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2855" && unzip -o skill.zip -d .claude/skills/liquid-glass-developer && rm skill.zip

Installs to .claude/skills/liquid-glass-developer

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Context-aware routing to iOS 26 Liquid Glass implementation patterns. Use when working with glass effects, GlassEffectContainer, morphing transitions, or iOS 26 visual effects.
176 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Wraps elements in GlassEffectContainerIOS26
  • Generates glassEffectIDIOS26 for morphing
  • Applies interactive touch feedback
  • Enforces layout via glassEffect modifiers

How it works

Wraps views in specific layout containers and applies visual modifiers linked to a namespace for transition tracking.

Inputs & outputs

You give it
UI element or component description
You get back
SwiftUI view code using glass-specific modifiers

When to use liquid-glass-developer

  • Implement liquid glass effects
  • Add morphing transitions to UI
  • Structure glass container views
  • Build translucent navigation panels

About this skill

Liquid Glass Developer (iOS 26)

Purpose

Context-aware routing to iOS 26 Liquid Glass implementation patterns. Proper use of GlassEffectContainer, glassEffect modifiers, morphing transitions, and interactive effects.

When Auto-Activated

  • Working with glass effects or iOS 26 visual effects
  • Keywords: glass, liquid glass, glassEffect, GlassEffectContainer, iOS 26, morphing, UIGlassEffect, UIVisualEffectView, cornerConfiguration, GlassContainerViewIOS26, GlassEffectViewIOS26
  • Editing files with glass effect modifiers
  • Implementing navigation panels, floating buttons, or translucent UI

🚨 CRITICAL RULES (NEVER VIOLATE)

  1. ALWAYS group glass elements in GlassEffectContainerIOS26 - Glass elements must be grouped for unified composition
  2. ALWAYS use glassEffectIDIOS26 for morphing - Elements that appear/disappear need IDs for smooth transitions
  3. Glass defines its shape - Use glassEffect(in: Shape), no separate clipShape() needed
  4. Glass is for navigation layer only - Never apply to content, only floating controls
  5. Use interactive glass for buttons - Buttons should use .regular.interactive() for touch feedback

📋 Quick Reference

Available Utilities (View+iOS26.swift)

// Wrapper for GlassEffectContainer with iOS version check
GlassEffectContainerIOS26(spacing: 20) {
    // Glass elements here
}

// Interactive glass effect (scaling/bounce on touch)
.glassEffectInteractiveIOS26(in: Circle())
.glassEffectInteractiveIOS26(in: .rect(cornerRadius: 16))

// Standard glass effect (no touch feedback)
.glassEffectIOS26(in: Circle())

// Morphing transition ID
.glassEffectIDIOS26("buttonId", in: glassNamespace)

// Circle glass button style (for Button views — handles full-frame hit testing)
.buttonStyleCircleGlassIOS26()

Complete Pattern Example

struct NavigationPanel: View {
    @Namespace private var glassNamespace
    @State private var isExpanded = false

    var body: some View {
        GlassEffectContainerIOS26(spacing: 20) {
            HStack {
                Button { } label: {
                    Image(systemName: "magnifyingglass")
                        .frame(width: 40, height: 40)
                }
                .glassEffectInteractiveIOS26(in: Circle())
                .glassEffectIDIOS26("search", in: glassNamespace)

                if isExpanded {
                    Button { } label: {
                        Image(systemName: "plus")
                            .frame(width: 40, height: 40)
                    }
                    .glassEffectInteractiveIOS26(in: Circle())
                    .glassEffectIDIOS26("add", in: glassNamespace)
                }
            }
        }
        .animation(.bouncy, value: isExpanded)
    }
}

Glass Shapes

// Circular buttons
.glassEffectInteractiveIOS26(in: Circle())

// Rounded rectangle
.glassEffectInteractiveIOS26(in: .rect(cornerRadius: 16))

// Capsule
.glassEffectInteractiveIOS26(in: Capsule())

🔄 Morphing Transitions

For smooth state transitions between glass elements:

@Namespace private var glassNamespace

// Elements with same container + IDs morph smoothly
GlassEffectContainerIOS26 {
    if editing {
        plusButton
            .glassEffectIDIOS26("leftButton", in: glassNamespace)
    } else {
        burgerButton
            .glassEffectIDIOS26("leftButton", in: glassNamespace)
    }
}
.animation(.bouncy, value: editing)

Key requirements:

  1. Elements in same GlassEffectContainerIOS26
  2. Each element has glassEffectIDIOS26 with shared namespace
  3. Wrap state changes with animation

⚠️ Common Mistakes

No Container Grouping

// ❌ WRONG - Individual glass effects
HStack {
    button1.glassEffectIOS26(in: Circle())
    button2.glassEffectIOS26(in: Circle())
}

// ✅ CORRECT - Grouped in container
GlassEffectContainerIOS26 {
    HStack {
        button1.glassEffectInteractiveIOS26(in: Circle())
        button2.glassEffectInteractiveIOS26(in: Circle())
    }
}

Redundant clipShape

// ❌ WRONG - clipShape before glass
.clipShape(Circle())
.glassEffectIOS26(in: Circle())

// ✅ CORRECT - Glass defines shape
.glassEffectInteractiveIOS26(in: Circle())

Missing Morphing IDs

// ❌ WRONG - Abrupt appear/disappear
if isVisible {
    button.glassEffectInteractiveIOS26(in: Circle())
}

// ✅ CORRECT - Smooth morphing
if isVisible {
    button
        .glassEffectInteractiveIOS26(in: Circle())
        .glassEffectIDIOS26("button", in: namespace)
}

Glass on Content

// ❌ WRONG - Glass on content
Text("Hello World")
    .glassEffectIOS26(in: .rect(cornerRadius: 8))

// ✅ CORRECT - Glass only on floating controls
// Use standard backgrounds for content:
Text("Hello World")
    .background(Color.Background.primary)

📚 iOS Version Handling

All utilities handle iOS version checks internally:

  • iOS 26+: Native glass effects applied
  • iOS < 26: Fallback to Color.Background.navigationPanel + .ultraThinMaterial
// This works on all iOS versions
.glassEffectInteractiveIOS26(in: Circle())

// Equivalent to:
if #available(iOS 26.0, *) {
    self.glassEffect(.regular.interactive(), in: Circle())
} else {
    self
        .background(Color.Background.navigationPanel)
        .background(.ultraThinMaterial)
}

🔧 UIKit Implementation

Available Utilities (UIView+iOS26Glass.swift)

// Container for grouping glass elements (like GlassEffectContainerIOS26 in SwiftUI)
let container = GlassContainerViewIOS26(spacing: 12)
container.glassContentView.addSubview(yourContent)

// Individual glass effect view (always interactive)
let glassView = GlassEffectViewIOS26()
glassView.glassContentView.addSubview(yourButton)

// Glass button configuration
let config = UIButton.Configuration.glassIOS26()
let button = UIButton(configuration: config)

UIKit Pattern Example

final class NavigationBarView: UIView {
    private let glassContainer = GlassContainerViewIOS26(spacing: 12)
    private let buttonGlass = GlassEffectViewIOS26()

    override init(frame: CGRect) {
        super.init(frame: frame)
        setup()
    }

    private func setup() {
        // Add container to view
        addSubview(glassContainer) {
            $0.pinToSuperview(insets: UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 16))
            $0.height.equal(to: 44)
        }

        // Setup circular button with glass
        buttonGlass.applyCircleShape(diameter: 44)
        buttonGlass.layoutUsing.anchors {
            $0.size(CGSize(width: 44, height: 44))
        }

        // Add button to glass content view (NOT directly to buttonGlass)
        buttonGlass.glassContentView.addSubview(myButton) {
            $0.center(in: buttonGlass.glassContentView)
        }

        // Add glass button to container's content view
        glassContainer.glassContentView.addSubview(buttonGlass)
    }
}

Shape Methods

// Circular buttons (44x44)
glassView.applyCircleShape(diameter: 44)

// Capsule/pill shape (e.g., for title views)
glassView.applyCapsuleShape(height: 44)

// iOS 26+: Uses cornerConfiguration = .capsule()
// iOS < 26: Uses layer.cornerRadius fallback

UIKit Critical Rules

  1. Always add content to glassContentView - Never add subviews directly to the glass view

    // ❌ WRONG
    glassView.addSubview(button)
    
    // ✅ CORRECT
    glassView.glassContentView.addSubview(button)
    
  2. Call shape methods once in setup - Not in layoutSubviews (unless height changes dynamically)

    // ❌ WRONG - Called every layout pass
    override func layoutSubviews() {
        super.layoutSubviews()
        glassView.applyCapsuleShape(height: bounds.height)
    }
    
    // ✅ CORRECT - Called once with fixed height
    func setup() {
        glassView.applyCapsuleShape(height: 44)
    }
    
  3. GlassEffectViewIOS26 is always interactive - No property to set, touch feedback is built-in

  4. Use glassIOS26() for text buttons

    var config = UIButton.Configuration.glassIOS26()
    config.title = "Done"
    config.baseForegroundColor = .Control.accent100
    let button = UIButton(configuration: config)
    

iOS Version Handling (UIKit)

// GlassEffectViewIOS26 handles version checks internally:
// iOS 26+: UIGlassEffect with cornerConfiguration
// iOS < 26: UIBlurEffect(style: .systemUltraThinMaterial) + Background.navigationPanel

// Example of internal implementation:
private func setupGlassEffect() {
    if #available(iOS 26.0, *) {
        let glassEffect = UIGlassEffect()
        glassEffect.isInteractive = true
        let effectView = UIVisualEffectView(effect: glassEffect)
        addSubview(effectView)
        glassEffectView = effectView
    } else {
        backgroundColor = .Background.navigationPanel
        let blurView = UIVisualEffectView(effect: UIBlurEffect(style: .systemUltraThinMaterial))
        addSubview(blurView)
    }
}

📁 Key Files

FilePurpose
View+iOS26.swiftSwiftUI glass effect utilities and wrappers
UIView+iOS26Glass.swiftUIKit glass effect utilities
HomeBottomNavigationPanelView.swiftNavigation panel with glass buttons
ChatInput.swiftChat input with morphing burger/plus button
ChatActionPanel.swiftAction buttons with interactive glass
EditorNavigationBarView.swiftUIKit navigation bar with glass container
EditorNavigationBarTitleView.swiftUIKit title view with capsule glass

🔗 External Resources


Content truncated.

When not to use it

  • Non-iOS 26 projects
  • Applying glass to non-navigation content

Prerequisites

SwiftUIIOS 26 SDK

Limitations

  • Strictly limited to iOS 26 patterns
  • Cannot be used outside of the defined component hierarchy

How it compares

It enforces strict design system coupling, ensuring glass elements adhere to specific shape and navigation-layer rules.

Compared to similar skills

liquid-glass-developer side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
liquid-glass-developer (this skill)234moNo flagsIntermediate
swiftui-liquid-glass155moNo flagsIntermediate
swiftui-ui-patterns15moNo flagsIntermediate
preview-data-generator029dNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

swiftui-liquid-glass

Dimillian

Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing feature to Liquid Glass, or review Liquid Glass usage for correctness, performance, and design alignment.

1567

swiftui-ui-patterns

Dimillian

Best practices and example-driven guidance for building SwiftUI views and components. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView, composing screens, or needing component-specific patterns and examples.

13

preview-data-generator

rshankras

Generate sample data and a multi-variant #Preview matrix for SwiftUI views — empty/loading/error/loaded states, light/dark, Dynamic Type, locales/RTL, and devices. Use when the user says "add previews", "sample data for previews", "preview my view in different states", "preview data", "prototype thi

00

3d-web-experience

davila7

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences. Use when: 3D website, three.js, WebGL, react three fiber, 3D experience.

3570

tamagui

tamagui

Universal React UI framework for web and native. Use when building cross-platform apps with Tamagui, creating styled components with `styled()`, configuring design tokens/themes, using Tamagui UI components, or working with animations. Triggers: "tamagui", "styled()", "$token", "XStack/YStack", "useTheme", "@tamagui/*" imports, "createStyledContext", "variants".

2478

frontend-ui-dark-ts

microsoft

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

430

Search skills

Search the agent skills registry