Home / Market / swiftui liquid glass

swiftui liquid glass

Implement or review SwiftUI Liquid Glass APIs with correct fallbacks and modifier order.

skill★ 509150 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: swiftui-liquid-glass description: Implement or review SwiftUI Liquid Glass APIs with correct fallbacks and modifier order. risk: safe source: "Dimillian/Skills (MIT)" date_added: "2026-03-25"

---

SwiftUI Liquid Glass

Overview

Use this skill to build or review SwiftUI features that fully align with the iOS 26+ Liquid Glass API. Prioritize native APIs (glassEffect, GlassEffectContainer, glass button styles) and Apple design guidance. Keep usage consistent, interactive where needed, and performance aware.

When to Use

Workflow Decision Tree

Choose the path that matches the request:

1) Review an existing feature

2) Improve a feature using Liquid Glass

3) Implement a new feature using Liquid Glass

Core Guidelines

Review Checklist

Implementation Checklist

Quick Snippets

Use these patterns directly and tailor shapes/tints/spacing.

if #available(iOS 26, *) {
    Text("Hello")
        .padding()
        .glassEffect(.regular.interactive(), in: .rect(cornerRadius: 16))
} else {
    Text("Hello")
        .padding()
        .background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 16))
}
GlassEffectContainer(spacing: 24) {
    HStack(spacing: 24) {
        Image(systemName: "scribble.variable")
            .frame(width: 72, height: 72)
            .font(.system(size: 32))
            .glassEffect()
        Image(systemName: "eraser.fill")
            .frame(width: 72, height: 72)
            .font(.system(size: 32))
            .glassEffect()
    }
}
Button("Confirm") { }
    .buttonStyle(.glassProminent)

Resources

Limitations