Help us improve
Share bugs, ideas, or general feedback.
From liquid-glass
Build and migrate iOS, macOS, iPadOS, watchOS, tvOS, and visionOS apps with Apple's Liquid Glass design system (iOS 26+, macOS 26 Tahoe+). Use when creating new SwiftUI apps targeting Apple's 2025+ platforms, migrating existing apps to Liquid Glass, applying .glassEffect(), .backgroundExtensionEffect(), .buttonStyle(.glass), GlassEffectContainer, glass toolbars, glass tab bars, glass sheets, or any Liquid Glass UI work. Also use when the user asks about modern Apple design, navigation patterns with glass, or SwiftUI best practices for the latest OS versions.
npx claudepluginhub haider-nawaz/liquid-glass-skill --plugin liquid-glassHow this skill is triggered — by the user, by Claude, or both
Slash command
/liquid-glass:liquid-glassThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build and migrate SwiftUI apps using Apple's Liquid Glass design language introduced at WWDC 2025. This skill covers iOS 26, iPadOS 26, macOS 26 (Tahoe), watchOS 26, tvOS 26, and visionOS 26.
Implements and troubleshoots iOS 26 Liquid Glass UI in SwiftUI: glassEffect modifier, GlassEffectContainer, morphing animations, migration from iOS 17/18, code generation, HIG compliance, accessibility, performance.
Implements Apple's Liquid Glass design and HIG for native macOS/iOS SwiftUI apps using materials, glass effects, cards, rows, badges, SF Symbols, and system spacing/typography/colors.
Implements Apple's Liquid Glass design system for iOS 26+ using SwiftUI glassEffect APIs and UIKit NSGlassEffectView integration. Covers fallbacks, accessibility, performance, morphing transitions, and version checks.
Share bugs, ideas, or general feedback.
Build and migrate SwiftUI apps using Apple's Liquid Glass design language introduced at WWDC 2025. This skill covers iOS 26, iPadOS 26, macOS 26 (Tahoe), watchOS 26, tvOS 26, and visionOS 26.
Always fetch the latest Apple developer documentation when implementing Liquid Glass features. The APIs may evolve between OS betas. Key documentation URLs to reference:
https://developer.apple.com/documentation/SwiftUI/Applying-Liquid-Glass-to-custom-viewshttps://developer.apple.com/documentation/swiftui/view/glasseffect(_:in:)https://developer.apple.com/documentation/SwiftUI/Landmarks-Building-an-app-with-Liquid-Glasshttps://developer.apple.com/videos/play/wwdc2025/323/ (WWDC25 Session: Build a SwiftUI app with the new design)Liquid Glass is a translucent, dynamic material exclusively for the navigation layer (toolbars, tab bars, buttons, controls) that floats above app content. It bends and refracts light in real-time, responds to device motion with specular highlights, and adapts continuously to background content.
Never apply glass to content itself (lists, tables, media, text blocks). Glass is for controls and navigation only.
// Basic - capsule shape (default)
Text("Label")
.padding()
.glassEffect()
// With shape and style
Image(systemName: "heart.fill")
.padding()
.glassEffect(.regular, in: .rect(cornerRadius: 16))
// Tinted glass
Text("Tinted")
.padding()
.glassEffect(.regular.tint(.blue))
// Interactive glass (scales, bounces, shimmers on touch - iOS only)
Button("Tap Me") { }
.glassEffect(.regular.interactive())
| Style | Use Case | Transparency |
|---|---|---|
.regular | Standard UI: toolbars, buttons, nav bars | Medium |
.clear | Media-rich backgrounds where content is bold/bright | High |
.identity | Conditionally disable glass (accessibility) | None |
Glass cannot sample other glass. Nearby glass elements MUST share a container for visual consistency and morphing.
GlassEffectContainer(spacing: 30.0) {
Button("Action 1") { }
.glassEffect()
.glassEffectID("btn1", in: namespace)
Button("Action 2") { }
.glassEffect()
.glassEffectID("btn2", in: namespace)
}
Use @Namespace + glassEffectID inside a GlassEffectContainer for smooth glass morphing:
@Namespace private var namespace
@State private var isExpanded = false
GlassEffectContainer(spacing: 16) {
if isExpanded {
ForEach(items) { item in
ItemView(item: item)
.glassEffect(.regular, in: .rect(cornerRadius: 24))
.glassEffectID(item.id, in: namespace)
}
}
Button {
withAnimation { isExpanded.toggle() }
} label: { Label("Toggle", systemImage: "chevron.down") }
.buttonStyle(.glass)
.glassEffectID("toggle", in: namespace)
}
Extends and blurs visual content behind navigation elements (toolbars, sidebars, inspectors):
Image(landmark.backgroundImageName)
.resizable()
.aspectRatio(contentMode: .fill)
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
.backgroundExtensionEffect()
// Standard glass button
Button("Action") { }
.buttonStyle(.glass)
// Prominent glass button (for primary actions)
Button("Save") { }
.buttonStyle(.glassProminent)
Toolbar items automatically receive glass styling. Use ToolbarSpacer and ToolbarItemGroup for layout:
.toolbar {
ToolbarSpacer(.flexible)
ToolbarItem { ShareLink(item: data, preview: preview) }
ToolbarSpacer(.fixed)
ToolbarItemGroup {
Button("Favorite", systemImage: "heart") { }
Button("Add", systemImage: "plus") { }
}
ToolbarItem {
Button("Info", systemImage: "info") { }
}
}
.toolbar(removing: .title) // Remove title for clean glass toolbar
Tab bars automatically adopt glass when compiled with Xcode 26:
TabView {
Tab("Home", systemImage: "house") { HomeView() }
Tab("Search", systemImage: "magnifyingglass") { SearchView() }
}
.tabBarMinimizeBehavior(.onScrollDown) // Collapse tab bar on scroll
Partial-height sheets automatically get Liquid Glass backgrounds:
.sheet(isPresented: $showSheet) {
SheetContent()
.presentationDetents([.medium, .large])
// Do NOT add .presentationBackground() - system handles it
}
For detailed migration steps, see references/migration-guide.md.
Summary:
.toolbarBackground)GlassEffectContainer.backgroundExtensionEffect() to hero imagesFor platform-specific details, see references/platform-specifics.md.
Key differences:
.tint(.clear) on glass buttons for proper rendering; use WindowBackgroundShapeStyle.windowBackground instead of Material for editing backgrounds.interactive() works; use UIDevice.current.userInterfaceIdiom for layout#if os(macOS) / #if os(iOS) for platform-specific codeFor detailed pitfalls and solutions, see references/pitfalls-and-solutions.md.
Critical issues:
GlassEffectContainer produce inconsistent visualsrotationEffect on glass views causes shape morphing - bridge to UIKit with UIGlassEffectButtonStylecontentShape() to fixCABackdropLayer instances (3 offscreen textures each) - use containers to groupFor complete code patterns from Apple's Landmarks sample app, see examples/landmarks-patterns.md.
@Environment injectionToolbarSpacer(.flexible) and ToolbarSpacer(.fixed) for toolbar layout.symbolVariant() modifier for SF Symbol state changes.symbolEffect(.drawOn) for animated icon transitions