swiftui-liquid-glassImplement, 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.
Install via ClawdBot CLI:
clawdbot install steipete/swiftui-liquid-glass_Attribution: copied from @Dimillianβs Dimillian/Skills (2025-12-31)._
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.
Choose the path that matches the request:
GlassEffectContainer where multiple glass elements appear.GlassEffectContainer when multiple glass elements coexist..glassEffect(...) after layout and visual modifiers..interactive() for elements that respond to touch/pointer.#available(iOS 26, *) and provide a non-glass fallback.#available(iOS 26, *) present with fallback UI.GlassEffectContainer.glassEffect applied after layout/appearance modifiers.interactive() only where user interaction exists.glassEffectID used with @Namespace for morphing.GlassEffectContainer and tune spacing..glassEffect(.regular.tint(...).interactive(), in: .rect(cornerRadius: ...)) as needed..buttonStyle(.glass) / .buttonStyle(.glassProminent) for actions.glassEffectID when hierarchy changes.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)
references/liquid-glass.mdGenerated Mar 1, 2026
A fintech app wants to update its dashboard and card interfaces to use Liquid Glass effects for a sleek, modern look that enhances visual hierarchy and user engagement. This involves refactoring existing SwiftUI views like transaction cards and buttons to adopt glass effects while ensuring performance and iOS 26+ compatibility.
A health app is building a new workout tracking feature with interactive glass elements for progress indicators and control buttons. The focus is on implementing new SwiftUI components using Liquid Glass APIs to create immersive, responsive interfaces that align with Apple's design guidelines for fitness applications.
An e-commerce platform seeks to improve product detail pages by adding glass effects to image galleries and action buttons, making the UI more visually appealing and intuitive. This scenario involves reviewing and improving existing SwiftUI code to integrate Liquid Glass for better user interaction and aesthetic consistency.
An educational app is creating interactive learning modules with glass-based UI elements like quizzes and progress trackers. The goal is to implement new SwiftUI features using Liquid Glass to enhance engagement through morphing transitions and consistent glass styling across different lesson screens.
A social media app aims to redesign user profiles with glass effects for avatars, bio cards, and action buttons to create a cohesive, modern interface. This involves refactoring existing SwiftUI views to use GlassEffectContainer and ensuring interactive elements respond appropriately to user inputs.
Offer specialized consulting or development services to clients looking to integrate Liquid Glass into their SwiftUI apps. Revenue comes from project-based fees or hourly rates for implementing, reviewing, or optimizing glass effects to enhance app aesthetics and user experience.
Develop and sell a subscription-based library of pre-built SwiftUI components with Liquid Glass effects. This targets businesses seeking to accelerate app development with ready-to-use, customizable glass UI elements, generating recurring revenue from monthly or annual licenses.
Provide paid online courses or in-person workshops focused on mastering Liquid Glass APIs in SwiftUI. Revenue is generated through course sales, workshop tickets, or corporate training packages aimed at developers and design teams wanting to adopt modern iOS UI techniques.
π¬ Integration Tip
Start by wrapping grouped glass elements in GlassEffectContainer to optimize performance, and always include availability checks with fallback materials for earlier iOS versions to ensure broad compatibility.
Full Windows desktop control. Mouse, keyboard, screenshots - interact with any Windows application like a human.
Control Android devices via ADB with support for UI layout analysis (uiautomator) and visual feedback (screencap). Use when you need to interact with Android apps, perform UI automation, take screenshots, or run complex ADB command sequences.
Build, test, and ship iOS apps with Swift, Xcode, and App Store best practices.
Control macOS GUI apps visually β take screenshots, click, scroll, type. Use when the user asks to interact with any Mac desktop application's graphical interface.
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.
Write safe Swift code avoiding memory leaks, optional traps, and concurrency bugs.