xiaohongshu
xiaohongshu
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...
Full skill instructions
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.
This skill includes comprehensive reference files in the references/ directory:
| File | Description |
|---|---|
core-concepts.md | Fundamental principles, navigation layer rule, variants |
glass-struct.md | Glass struct API: .regular, .clear, .identity, .tint(), .interactive() |
glass-effect-modifier.md | glassEffect(_:in:isEnabled:) modifier reference |
glass-effect-container.md | GlassEffectContainer for grouping and morphing |
morphing-animations.md | @Namespace, glassEffectID, glassEffectUnion |
button-styles.md | .buttonStyle(.glass), .buttonStyle(.glassProminent) |
system-components.md | Sheets, alerts, pickers, toolbars, tab views |
migration-guide.md | iOS 17/18 materials to iOS 26 Liquid Glass |
accessibility.md | Reduce Transparency, VoiceOver, Dynamic Type |
performance.md | Optimization strategies, profiling tips |
best-practices.md | Five golden rules, design patterns |
troubleshooting.md | Common issues and solutions |
backward-compatibility.md | Supporting iOS 17/18 alongside iOS 26 |
platform-differences.md | iOS, macOS, watchOS, tvOS, visionOS differences |
When user asks about implementing specific UI components with Liquid Glass, consult the components/ directory for detailed implementation patterns and code examples.
| File | Description |
|---|---|
toolbar.md | Toolbar glass styling, grouping, dynamic toolbars |
tab-bar.md | Tab bar glass, minimize behavior, alignment |
sheet.md | Sheet presentations with glass backgrounds |
search.md | Searchable views with glass styling |
picker.md | Segmented, menu, wheel, color pickers |
scroll-edge.md | Floating headers/footers, scroll blur effects |
system-alerts.md | Alerts, dialogs, menus, context menus, sliders |
glass-overlap.md | Overlapping glass, zIndex, depth effects |
material-hierarchy.md | ultraThin, thin, regular, thick materials |
animations.md | Expanding, rotating, merging, pulse animations |
// 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 {
HStack {
Button("A") { }.glassEffect()
Button("B") { }.glassEffect()
}
}
@Namespace private var namespace
GlassEffectContainer {
Button("Toggle") { }
.glassEffect()
.glassEffectID("btn", in: namespace)
}
GlassEffectContainer for multiple elements..regular or .clear) throughout.Button(action: add) {
Image(systemName: "plus")
.font(.title2)
.padding(18)
}
.glassEffect(.regular.tint(.blue).interactive(), in: .circle)
@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)
}
}
}
}
// BEFORE (iOS 17/18)
Button("Action") { }
.padding()
.background(.ultraThinMaterial)
.clipShape(Capsule())
// AFTER (iOS 26)
Button("Action") { }
.padding()
.glassEffect(in: .capsule)
For API & Concepts (references/):
glass-struct.md, glass-effect-modifier.mdglass-effect-container.mdmorphing-animations.mdsystem-components.mdmigration-guide.mdperformance.mdtroubleshooting.mdplatform-differences.mdbackward-compatibility.mdFor Component Implementation (components/):
components/toolbar.mdcomponents/tab-bar.mdcomponents/sheet.mdcomponents/search.mdcomponents/picker.mdcomponents/scroll-edge.mdcomponents/system-alerts.mdcomponents/glass-overlap.mdcomponents/material-hierarchy.mdcomponents/animations.mdxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
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...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
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...
Display project status, active tracks, and next actions
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.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience