joaquincampo/my-plugins/ios26-liquid-glass-adoption
Claude Code and agent skill by joaquincampo/my-plugins
- community
Checking that the SKILL.md file is still in the repository.
Adopt iOS 26 / iPadOS 26 / macOS 26 SwiftUI APIs: Liquid Glass, modernized toolbars and tab bars, matched transitions, scroll position. Triggers: `glassEffect`, `buttonStyle(.glass)`, `ToolbarSpacer`, `matchedTransitionSource`, `tabBarMinimizeBehavior`.
Install
npx vskill@latest install joaquincampo/my-plugins/ios26-liquid-glass-adoptionSKILL.md
The same SKILL.md was published earlier as joaquincampo/my-plugins/ios26-liquid-glass-adoption.
iOS 26 Liquid Glass Adoption
When this applies
UI work on a project that already targets iOS 26+, or work to upgrade an existing iOS 17 / iOS 18 codebase to feel native on iOS 26. Pure logic and Model layers are out of scope.
Prerequisite
Deployment target must be iOS 26 / iPadOS 26 / macOS 26, with Xcode 26+. None of these APIs are back-deployable; do not wrap them in if #available to ship on older OSes. Bump the Package.swift platforms tuple (and the Xcode project minimum deployment target) before touching call sites.
What's actually new and worth adopting
- Glass surfaces:
glassEffect(_:in:isEnabled:)for translucent shapes,GlassEffectContainerfor sibling glass shapes that morph into each other, andbuttonStyle(.glass)for primary CTAs and toolbar buttons. Replaces ad-hoc.background(.ultraThinMaterial)and.borderedProminent. - Toolbars and tab bars:
ToolbarSpaceras first-classToolbarContent(notSpacer()in aToolbarItem),tabBarMinimizeBehavior(.onScrollDown)to collapse the tab bar on scroll, and the newTab(value:role:content:label:)initializer withrole: .searchfor a dedicated search tab. - Transitions:
matchedTransitionSource(id:in:)on a source view paired with.navigationTransition(.zoom(sourceID:in:))on the destination, pluscontentTransition(.numericText)for animated counters. - Scrolling:
scrollPosition(id:)with anIdentifiablebinding,scrollTargetBehavior(.viewAligned)and.paging, andscrollEdgeEffectStyle(_:for:)for the new top and bottom edge effects. - Other: the
@Entrymacro for environment values (replaces theEnvironmentKeyboilerplate),symbolEffect(.bounce, value:)on SF Symbols, two-detent sheets withpresentationDetents([.height(...), .large])andpresentationBackgroundInteraction(.enabled), andtextInputFormattingControlVisibility(.hidden, for: .all)to suppress the new default formatting strip inTextEditor.
Gotchas
- Symptom:
.glassEffect(in:)renders as a plain background, no translucency. Cause: deployment target is still iOS 17 or 18. Fix: bumpPackage.swift.iOS(.v26)and the Xcode project minimum before touching the call sites; none of these APIs are back-deployable. - Symptom: matched zoom transition snaps instead of animating between the source and destination. Cause: source and destination use different
Namespace.IDinstances (each declared its own@Namespace). Fix: declare the namespace once at the parent and propagate it via the navigation value, sheet payload, or destination enum. - Symptom: two adjacent glass shapes flicker independently when one expands or contracts. Cause: each shape owns its own glass surface, so they cannot morph. Fix: wrap them in a
GlassEffectContainerand animate the parent state. - Symptom:
contentTransition(.numericText)animation jitters, digits reflow. Cause: no.monospacedDigit()on the label. Fix: add.monospacedDigit()adjacent to thecontentTransitionmodifier; drive with.animation(.smooth, value: count). - Symptom: tab bar does not collapse on scroll. Cause:
.tabBarMinimizeBehavioris attached to a child view, not theTabView. Fix: attach the modifier directly to theTabView.
Adoption order
- Bump deployment target to 26 in
Package.swiftand the Xcode project. Verify the project still builds and the simulator launches. - Apply
.glassEffect(in:)to elevated surfaces (toolbars, floating search fields, action chips). Swap primary CTAs from.borderedProminentto.buttonStyle(.glass). - Add
ToolbarSpacerto break dense toolbars into visual groups (especially keyboard toolbars). - Wire
matchedTransitionSourceon list cells or thumbnails, and.navigationTransition(.zoom(sourceID:in:))on the destination view that the cell pushes or presents. - Replace deprecated
.tabItemusages with the newTab(value:role:content:label:)API. Add.tabBarMinimizeBehavior(.onScrollDown)to theTabView.
What to skip (advertised but rarely needed)
backgroundExtensionEffect(): niche, only useful for content that should bleed under bars.@Animatablemacro: only relevant if you write customAnimatableshapes; default SwiftUI animation already covers most cases.WebView/WebPage: only when you need a full web view embedded; do not adopt for one-off links.
Deep dives in references/
references/glass-and-toolbar.md: glass effects,GlassEffectContainer, toolbar and tab bar adoption.references/transitions-and-scroll.md: matched transitions, scroll position and edge effects, symbol effects,@Entry.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapple-dev/skills/ios26-liquid-glass-adoption/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joaquincampo/my-plugins/ios26-liquid-glass-adoption)