liquid-glass-developer
Context-aware routing to iOS 26 Liquid Glass implementation patterns. Use when working with glass effects, GlassEffectContainer, morphing transitions, or iOS 26 visual effects.
Install
mkdir -p .claude/skills/liquid-glass-developer && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2855" && unzip -o skill.zip -d .claude/skills/liquid-glass-developer && rm skill.zipInstalls to .claude/skills/liquid-glass-developer
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)
- ALWAYS group glass elements in
GlassEffectContainerIOS26- Glass elements must be grouped for unified composition - ALWAYS use
glassEffectIDIOS26for morphing - Elements that appear/disappear need IDs for smooth transitions - Glass defines its shape - Use
glassEffect(in: Shape), no separateclipShape()needed - Glass is for navigation layer only - Never apply to content, only floating controls
- 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)
// Glass button style (legacy, prefer glassEffectInteractiveIOS26)
.buttonStyleGlassIOS26()
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:
- Elements in same
GlassEffectContainerIOS26 - Each element has
glassEffectIDIOS26with shared namespace - 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
-
Always add content to
glassContentView- Never add subviews directly to the glass view// ❌ WRONG glassView.addSubview(button) // ✅ CORRECT glassView.glassContentView.addSubview(button) -
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) } -
GlassEffectViewIOS26 is always interactive - No property to set, touch feedback is built-in
-
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
| File | Purpose |
|---|---|
View+iOS26.swift | SwiftUI glass effect utilities and wrappers |
UIView+iOS26Glass.swift | UIKit glass effect utilities |
HomeBottomNavigationPanelView.swift | Navigation panel with glass buttons |
ChatInput.swift | Chat input with morphing burger/plus button |
ChatActionPanel.swift | Action buttons with interactive glass |
EditorNavigationBarView.swift | UIKit navigation bar with glass container |
EditorNavigationBarTitleView.swift | UIKit title view with capsule glass |
🔗 External Resources
- Understanding GlassEffectContainer - DEV
- GlassEffectContainer - Apple Docs
- iOS 26 Liquid Glass Reference
- [WWDC25: Build a SwiftUI app with the new design](htt
Content truncated.
More by anyproto
View all skills by anyproto →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversBreak down complex problems with Sequential Thinking, a structured tool and step by step math solver for dynamic, reflec
Build persistent semantic networks for enterprise & engineering data management. Enable data persistence and memory acro
Boost productivity with Task Master: an AI-powered tool for project management and agile development workflows, integrat
Structured spec-driven development workflow for AI-assisted software development. Creates detailed specifications before
Catalog of official Microsoft MCP server implementations. Access Azure, Microsoft 365, Dynamics 365, Power Platform, and
Access shadcn/ui v4 components, blocks, and demos for rapid React UI library development. Seamless integration and sourc
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.