/liquid-glass:liquid-glassfrom liquid-glass
Builds, reviews, and migrates SwiftUI interfaces using Apple's Liquid Glass design on iOS, iPadOS, macOS, watchOS, and tvOS 26 and 27. Covers glassEffect, GlassEffectContainer, glass button styles, concentric shapes, system glass chrome, iOS 27 toolbar/tab bar APIs, accessibility, and measured contrast.
Ships in liquid-glass. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Liquid Glass is the material Apple introduced in iOS 26 for the functional layer: the controls and navigation that float above an app's content. Standard SwiftUI components adopt it automatically when you build with the iOS 26 or 27 SDK. Custom views opt in with glassEffect(_:in:).
This skill covers the API, the system chrome that already uses glass, the iOS 27 changes, Apple's design rules, accessibility, performance, and anti-patterns. It also includes copy-ready patterns and full-screen examples.
Glass, glassEffect, GlassEffectContainer, and the glass button styles are not available there. visionOS uses its own system glass and glassBackgroundEffect.UIGlassEffect, NSGlassEffectView), React Native, Flutter, and app icons (made in Icon Composer).if #available(iOS 26.0, *). See references/10-migrating-to-ios27.md.For a design question without code, answer from the decision tree, the golden rules, and 02, with 05 §4 for legibility; skip the checklist and the linter. For code, copy this checklist into your response and tick items off as you go:
- [ ] 1. Find the deployment target and platforms (IPHONEOS_DEPLOYMENT_TARGET, Package.swift platforms).
Target 26.x → gate every iOS 27 API with `if #available(iOS 27.0, *)`.
- [ ] 2. Classify every view: functional layer (controls and navigation floating above content) or content layer.
- [ ] 3. Choose APIs with the decision tree below. Prefer system components.
- [ ] 4. Write the code. Check each glass, toolbar, tab, or sheet signature against references/01 and 08.
- [ ] 5. Run the linter: python3 <skill-dir>/scripts/check_glass.py <files-or-folders> --target <deployment target>
Fix what it reports and re-run until it is clean.
- [ ] 6. Walk checklists/pre-ship-checklist.md.
The linter catches the mistakes models make most often with this API. These include invented parameters (glassEffect(…, isEnabled:), .containerConcentric), the WWDC26 pre-release name toolbarMinimizeBehavior, DefaultToolbarItem nested in ToolbarItem, ungated iOS 27 APIs, and modifiers deprecated in the 27 SDK.
Is this a control or navigation element floating above content?
│
├─ No: a card, list row, hero, background, or body text
│ → No glass. Use a solid color or a standard material (.regularMaterial, …).
│
└─ Yes
├─ Is there a system component for it? (navigation bar, toolbar item, tab bar,
│ search field, sheet, menu, alert, standard button)
│ → Use it. It is already glass. Never add .glassEffect() on top.
│ Buttons: .buttonStyle(.glass) for secondary, .buttonStyle(.glassProminent) for the primary action.
│
├─ One custom element
│ → .glassEffect(.regular, in: shape). Add .interactive() if a custom view responds to touch.
│
├─ Several custom glass elements near each other
│ → Wrap them in one GlassEffectContainer.
│ ├─ They appear, disappear, or morph → add @Namespace, .glassEffectID(_:in:), and withAnimation.
│ └─ Separate shapes should read as one → .glassEffectUnion(id:namespace:)
│
└─ Over photos or video, with bold, bright content on top
→ .clear, with a dimming layer behind it when the media is bright.
glassEffect. Text on glass is .primary: carry the hierarchy with size and weight, not .secondary, which measured as low as 2.3 : 1 there (05 §4).GlassEffectContainer. Glass can't sample other glass, so a shared container keeps the result visually correct and lets the system render the shapes together. Keep the container's spacing smaller than the layout gap unless you want the shapes to merge..regular by default. Use .clear only over media-rich content, with bold content on top and a dimming layer when the media is bright. Never mix the two variants in one group.ConcentricRectangle() or .rect(corners: .concentric), and declare the parent shape with .containerShape(_:). There is no .containerConcentric in SwiftUI..identity under Reduce Transparency, because the system already frosts it. Your job is labels, contrast, custom backgrounds, and custom motion. (05)Material or blur to fake glass on controls. Never use glass to style content.glassEffect has no isEnabled: parameter. The iOS 27 navigation bar API is toolbarMinimizationBehavior(_:for:). Gate iOS 27 APIs when the target is 26. When unsure, check 01 and 08.Use these terms consistently:
GlassEffectContainer(spacing:) value. Shapes closer than this blend together, and the larger the value, the sooner they merge.Glass, glassEffect, and GlassEffectContainer are unchanged since 26.0. The material itself was refined automatically, with more diffusion, a darkened edge, and brighter specular highlights.UIDesignRequiresCompatibility is ignored when you build with the 27 SDKs. From April 2027, App Store uploads must be built with the iOS 27 SDK.toolbarMinimizationBehavior(_:for:)visibilityPriority(_:)ToolbarOverflowMenu and toolbarOverflowMenu(content:).topBarPinnedTrailingTabRole.prominentNavigationTransition.crossFadepresentationPlacement(_:)textInputBorderShape(_:)PickerStyle.tabs.automatic style has new visuals, so re-check any .soft override.Details are in references/09-whats-new-ios27.md. Migration steps are in references/10-migrating-to-ios27.md.
| File | Load when |
|---|---|
| references/01-api-reference.md | Writing any custom glass: glassEffect, Glass, containers, morphing, button styles, concentric shapes, availability matrix |
| references/02-hig-principles.md | Deciding where glass goes, regular vs clear, tint and brand color, legibility |
| references/03-design-tokens.md | Picking shapes, spacing, dimming, tints, typography, animation curves |
| references/04-motion-and-interaction.md | Morphing, transitions, interactive glass, zoom and cross-fade presentations |
| references/05-accessibility.md | Reduce Transparency/Motion, Increase Contrast, Show Borders, the look setting, contrast, VoiceOver |
| references/06-performance.md | Many glass elements, glass over video, profiling |
| references/07-anti-patterns.md | Reviewing or fixing existing code (❌/✅ pairs) |
| references/08-system-chrome.md | Toolbars, navigation bars, tab bars, search, sheets, scroll edge effects (iOS 26 + 27 APIs) |
| references/09-whats-new-ios27.md | Anything specific to iOS 27, iPadOS 27, macOS 27, or iPhone Duo |
| references/10-migrating-to-ios27.md | Moving an iOS 26 app to the 27 SDK, availability gating, deprecations, targets below 26 |
| File | Shows |
|---|---|
| patterns/glass-navigation-bar.md | NavigationStack chrome, toolbar grouping, iOS 27 minimization, overflow, and pinned items |
| patterns/glass-tab-bar.md | TabView with search tab, bottom accessory, minimize behavior, iOS 27 prominent tab |
| patterns/glass-floating-toolbar.md | Custom floating glass controls with morphing, pinned with safeAreaBar |
| patterns/glass-card-stack.md | Content-layer cards (no glass) with glass controls over media |
| patterns/glass-modal-sheet.md | Sheets: detents, Close/Done placement, zoom from a toolbar item, iOS 27 cross-fade |
| patterns/glass-search-field.md | .searchable placement, minimized search, search tab, scopes, suggestions |
| File | Screen | Key APIs | Min OS |
|---|---|---|---|
| examples/01-SettingsScreen.swift | Settings list | .searchable + .searchToolbarBehavior(.minimize), a destructive row with its dialog attached to the button | 26 |
| examples/02-MusicPlayerScreen.swift | Now Playing | .clear glass over artwork with a dimming layer, transport controls in one container | 26 |
| examples/03-OnboardingFlow.swift | Onboarding | Glass page dots that resize and blend, prominent CTA, Reduce Motion-aware transitions | 26 |
| examples/04-PhotoDetailScreen.swift | Photo viewer | Floating glass toolbar whose extra tools morph in (matchedGeometry), close button | 26 |
| examples/05-DashboardScreen.swift | Health dashboard | Content cards (no glass), quick actions plus DefaultToolbarItem search in the bottom toolbar | 26 |
| examples/06-ChatScreen.swift | Chat | Morphing glass composer in safeAreaInset (the @FocusState issue rules out safeAreaBar) | 26 |
| examples/07-ProfileScreen.swift | Profile | Cover under the glass bar, prominent Follow button, Picker with .tabs (27, gated), zoom sheet from a ToolbarItem | 26 |
| examples/08-LoginScreen.swift | Sign in | Real NavigationStack chrome, custom glass segmented switcher, material fields, SignInWithAppleButton, safeAreaBar | 26 |
| examples/09-HealthTodayScreen.swift | App shell | TabView + search tab + accessory (.expanded/.inline), floating action menu, material cards, iOS 27 nav bar minimization (gated) | 26 |
| examples/10-StoreScreen.swift | Store shell | iOS 27: prominent tab, toolbarMinimizationBehavior, .topBarPinnedTrailing, visibilityPriority, toolbarOverflowMenu, cross-fade sheet | 27 |
Every example marks which views are content layer and which are functional layer. They're written for the Gallery host app, which needs Xcode 27 (cd Gallery && xcodegen generate), and they pass scripts/check_glass.py --target 26.0 with no errors or warnings. Examples 07, 09 and 10 use iOS 27 APIs, so code copied from them needs Xcode 27; 07 and 09 gate those APIs with #available and still run on iOS 26.
scripts/check_glass.py is a read-only linter for Swift files, using only the Python standard library. Run python3 scripts/check_glass.py --help for options. It reports error (won't compile or is wrong), warn (a design rule, or an API newer than --target without a gate), and info (worth migrating). --verbose adds a note for every standard material and every use of clear glass.These are Apple's primary sources. The skill quotes them where it states a rule.
checklists/pre-ship-checklist.md (opens in a new tab)examples/01-SettingsScreen.swift (opens in a new tab)examples/02-MusicPlayerScreen.swift (opens in a new tab)examples/03-OnboardingFlow.swift (opens in a new tab)examples/04-PhotoDetailScreen.swift (opens in a new tab)examples/05-DashboardScreen.swift (opens in a new tab)examples/06-ChatScreen.swift (opens in a new tab)examples/07-ProfileScreen.swift (opens in a new tab)examples/08-LoginScreen.swift (opens in a new tab)examples/09-HealthTodayScreen.swift (opens in a new tab)examples/10-StoreScreen.swift (opens in a new tab)patterns/glass-card-stack.md (opens in a new tab)patterns/glass-floating-toolbar.md (opens in a new tab)patterns/glass-modal-sheet.md (opens in a new tab)patterns/glass-navigation-bar.md (opens in a new tab)patterns/glass-search-field.md (opens in a new tab)patterns/glass-tab-bar.md (opens in a new tab)references/01-api-reference.md (opens in a new tab)references/02-hig-principles.md (opens in a new tab)references/03-design-tokens.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
liquid-glass, swiftui, apple-design, ios-26, ios-27, glass-effect
npx claudepluginhub heyparsadev/liquid-glass-skill --plugin liquid-glassOther plugins' skills for the same job