Logo van Liquid Glass

Liquid Glass

Community
heyparsadev
liquid-glass

Builds, reviews, and migrates SwiftUI interfaces that use Apple's Liquid Glass design on iOS, iPadOS, macOS, watchOS, and tvOS 26 and 27. Covers glassEffect and the Glass variants, GlassEffectContainer and morphing, the glass button styles, concentric shapes, the system glass chrome (toolbars, tab bars, search, sheets, scroll edge effects), the iOS 27 toolbar and tab bar APIs, accessibility, and measured contrast. Use when writing, editing, or reviewing SwiftUI for iOS 26 or 27; when the user mentions Liquid Glass, glassEffect, GlassEffectContainer, glass buttons, iOS 26 or 27 design, Xcode 27, or the WWDC25/WWDC26 design changes; when asked to redesign, modernize, audit, or migrate a screen to the current system look; and for design questions without code about an iPhone, iPad, or Mac app, such as how a screen, bar, or control should look in Apple's new design or whether it should be glass. Not for web or Android UI, or for UIKit, AppKit, visionOS, React Native, or Flutter code.

Overzicht

Uitgeverheyparsadev
Repositoryliquid-glass-skill
Skillnaamliquid-glass
Sterren
11
Forks
1
Meegeleverde bestanden
28
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 28

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door heyparsadev op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Liquid Glass in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/heyparsadev/liquid-glass-skill/tree/main/skills/liquid-glass
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/heyparsadev/liquid-glass-skill.git /tmp/liquid-glass-skill
mkdir -p .claude/skills
cp -r /tmp/liquid-glass-skill/skills/liquid-glass .claude/skills/liquid-glass
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Liquid Glass in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Liquid Glass automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Liquid Glass niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Liquid Glass for SwiftUI

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.

Scope

  • In scope. SwiftUI on iOS, iPadOS, Mac Catalyst, macOS, tvOS, and watchOS 26 and later, built with Xcode 26 or later. The iOS 27 APIs need Xcode 27.
  • visionOS. Glass, glassEffect, GlassEffectContainer, and the glass button styles are not available there. visionOS uses its own system glass and glassBackgroundEffect.
  • Out of scope. UIKit and AppKit (UIGlassEffect, NSGlassEffectView), React Native, Flutter, and app icons (made in Icon Composer).
  • Deployment targets below 26. System components still get Liquid Glass when built with the 26 or 27 SDK. Custom glass needs if #available(iOS 26.0, *). See references/10-migrating-to-ios27.md.

Workflow

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.

Decision tree

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.

Golden rules

  1. Glass is for the functional layer only. Use it on controls and navigation that float above content. Never use it on cards, rows, heroes, or backgrounds. (02)
  2. Never put glass on glass. Anything placed on a glass surface uses fills, transparency, or vibrant foreground styles, not another 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).
  3. Prefer system components. Bars, toolbar items, tab bars, search, sheets, and the glass button styles already render glass. Don't re-glass them, and remove custom bar backgrounds.
  4. Put nearby custom glass in one 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.
  5. Use .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.
  6. Tint signals prominence, not decoration. Tint the one or two primary actions in a view. Put brand color in the content layer.
  7. Make nested corners concentric. Use ConcentricRectangle() or .rect(corners: .concentric), and declare the parent shape with .containerShape(_:). There is no .containerConcentric in SwiftUI.
  8. Accessibility adapts automatically. Don't swap glass for .identity under Reduce Transparency, because the system already frosts it. Your job is labels, contrast, custom backgrounds, and custom motion. (05)
  9. Standard materials are for the content layer. Never use Material or blur to fake glass on controls. Never use glass to style content.
  10. Don't invent API. 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.

Glossary

Use these terms consistently:

  • Functional layer. Apple's term for the controls and navigation (bars, toolbars, tab bars, sidebars, floating buttons) that float above content in Liquid Glass.
  • Content layer. Everything that scrolls or carries information underneath: lists, cards, media, backgrounds.
  • Spacing (blend distance). The GlassEffectContainer(spacing:) value. Shapes closer than this blend together, and the larger the value, the sooner they merge.
  • Liquid Glass look setting. The user's system preference: a Clear/Tinted choice in iOS 26.1, a slider "from ultra clear to fully tinted" in iOS 27. Apps can't read it, and standard glass follows it automatically.

iOS 27 at a glance

  • No new glass APIs. 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.
  • The opt-out is gone. UIDesignRequiresCompatibility is ignored when you build with the 27 SDKs. From April 2027, App Store uploads must be built with the iOS 27 SDK.
  • New chrome APIs. These are all iOS 27.0+ and need gating on a 26 target:
    • toolbarMinimizationBehavior(_:for:)
    • visibilityPriority(_:)
    • ToolbarOverflowMenu and toolbarOverflowMenu(content:)
    • .topBarPinnedTrailing
    • TabRole.prominent
    • NavigationTransition.crossFade
    • presentationPlacement(_:)
    • textInputBorderShape(_:)
    • PickerStyle.tabs
  • Scroll edge effects. The .automatic style has new visuals, so re-check any .soft override.
  • iPhone Duo (iOS 27.1). Bars move to the side. The vertical-toolbar APIs are still beta.

Details are in references/09-whats-new-ios27.md. Migration steps are in references/10-migrating-to-ios27.md.

Files

References: load the one the task needs

FileLoad when
references/01-api-reference.mdWriting any custom glass: glassEffect, Glass, containers, morphing, button styles, concentric shapes, availability matrix
references/02-hig-principles.mdDeciding where glass goes, regular vs clear, tint and brand color, legibility
references/03-design-tokens.mdPicking shapes, spacing, dimming, tints, typography, animation curves
references/04-motion-and-interaction.mdMorphing, transitions, interactive glass, zoom and cross-fade presentations
references/05-accessibility.mdReduce Transparency/Motion, Increase Contrast, Show Borders, the look setting, contrast, VoiceOver
references/06-performance.mdMany glass elements, glass over video, profiling
references/07-anti-patterns.mdReviewing or fixing existing code (❌/✅ pairs)
references/08-system-chrome.mdToolbars, navigation bars, tab bars, search, sheets, scroll edge effects (iOS 26 + 27 APIs)
references/09-whats-new-ios27.mdAnything specific to iOS 27, iPadOS 27, macOS 27, or iPhone Duo
references/10-migrating-to-ios27.mdMoving an iOS 26 app to the 27 SDK, availability gating, deprecations, targets below 26

Patterns: one surface each

FileShows
patterns/glass-navigation-bar.mdNavigationStack chrome, toolbar grouping, iOS 27 minimization, overflow, and pinned items
patterns/glass-tab-bar.mdTabView with search tab, bottom accessory, minimize behavior, iOS 27 prominent tab
patterns/glass-floating-toolbar.mdCustom floating glass controls with morphing, pinned with safeAreaBar
patterns/glass-card-stack.mdContent-layer cards (no glass) with glass controls over media
patterns/glass-modal-sheet.mdSheets: 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

Examples: full screens

FileScreenKey APIsMin OS
examples/01-SettingsScreen.swiftSettings list.searchable + .searchToolbarBehavior(.minimize), a destructive row with its dialog attached to the button26
examples/02-MusicPlayerScreen.swiftNow Playing.clear glass over artwork with a dimming layer, transport controls in one container26
examples/03-OnboardingFlow.swiftOnboardingGlass page dots that resize and blend, prominent CTA, Reduce Motion-aware transitions26
examples/04-PhotoDetailScreen.swiftPhoto viewerFloating glass toolbar whose extra tools morph in (matchedGeometry), close button26
examples/05-DashboardScreen.swiftHealth dashboardContent cards (no glass), quick actions plus DefaultToolbarItem search in the bottom toolbar26
examples/06-ChatScreen.swiftChatMorphing glass composer in safeAreaInset (the @FocusState issue rules out safeAreaBar)26
examples/07-ProfileScreen.swiftProfileCover under the glass bar, prominent Follow button, Picker with .tabs (27, gated), zoom sheet from a ToolbarItem26
examples/08-LoginScreen.swiftSign inReal NavigationStack chrome, custom glass segmented switcher, material fields, SignInWithAppleButton, safeAreaBar26
examples/09-HealthTodayScreen.swiftApp shellTabView + search tab + accessory (.expanded/.inline), floating action menu, material cards, iOS 27 nav bar minimization (gated)26
examples/10-StoreScreen.swiftStore shelliOS 27: prominent tab, toolbarMinimizationBehavior, .topBarPinnedTrailing, visibilityPriority, toolbarOverflowMenu, cross-fade sheet27

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

  • 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.

Sources

These are Apple's primary sources. The skill quotes them where it states a rule.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Liquid Glass?

Builds, reviews, and migrates SwiftUI interfaces that use Apple's Liquid Glass design on iOS, iPadOS, macOS, watchOS, and tvOS 26 and 27. Covers glassEffect and the Glass variants, GlassEffectContainer and morphing, the glass button styles, concentric shapes, the system glass chrome (toolbars, tab bars, search, sheets, scroll edge effects), the iOS 27 toolbar and tab bar APIs, accessibility, and measured contrast. Use when writing, editing, or reviewing SwiftUI for iOS 26 or 27; when the user mentions Liquid Glass, glassEffect, GlassEffectContainer, glass buttons, iOS 26 or 27 design, Xcode...

Waarom Liquid Glass gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Liquid Glass bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Liquid Glass in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/heyparsadev/liquid-glass-skill/tree/main/skills/liquid-glass. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Liquid Glass gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Liquid Glass gebruiken?

Zoveel als je wilt. Je kunt Liquid Glass gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Liquid Glass gratis?

Ja. Deze skill is door heyparsadev op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇