swiftui-graphics
Skill by Jwuthri
Adds advanced visual effects to SwiftUI apps, including Metal shaders, .visualEffect, Liquid Glass and Canvas drawing. It is for iOS developers who want per-pixel or animated graphics.
Install swiftui-graphics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Jwuthri/Tracely-ai /tmp/Tracely-ai && mkdir -p ~/.claude/skills && cp -r /tmp/Tracely-ai/.agents/skills/swiftui-graphics ~/.claude/skills/swiftui-graphicsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Jwuthri/Tracely-ai /tmp/Tracely-ai && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Tracely-ai/.agents/skills/swiftui-graphics ~/.gemini/antigravity-cli/skills/swiftui-graphicsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
SwiftUI Graphics is a SKILL.md guide for advanced visuals in SwiftUI. It covers Metal shader modifiers (.colorEffect, .distortionEffect, .layerEffect), the .visualEffect modifier, Liquid Glass for iOS 26, and Canvas drawing. It includes a decision tree for choosing an API, code recipes for a ripple, a holographic shimmer and CRT scanlines, and anti-patterns to avoid.
The guide explains that shaders are written in Metal Shading Language in a .metal file, marked with [[ stitchable ]], and called from Swift through ShaderLibrary. It also gives performance rules, such as avoiding stacked layer effects and profiling with Instruments before optimizing. It is aimed at developers building advanced SwiftUI graphics for iOS, and it points to a separate basics skill for motion.
Written from the project's SKILL.md and checked against it.
What it can do
- Metal shader effectsExplains .colorEffect, .distortionEffect and .layerEffect with Metal shader code and Swift bindings.
- Ripple layer effectRecipe for a touch ripple that displaces nearby pixels along a sine wave.
- Holographic color effectRecipe for an oil-slick rainbow shimmer driven by time.
- CRT scanlinesRecipe for a vintage CRT look with scanlines, flicker and slight color tint.
- visualEffect modifierShows how to react to a view's geometry for parallax, scroll-driven scale and sticky reveal.
- Liquid GlassShows glassEffect and GlassEffectContainer on iOS 26, with a material fallback for older versions.
- Canvas drawingShows vector drawing with Canvas and animating it with TimelineView.
- Performance guidanceLists relative GPU costs for each effect and rules for keeping rendering efficient.
What you need
- iOS 17 or later for Metal shader modifiers and .visualEffect
- iOS 26 for Liquid Glass APIs
- A .metal file in the app target
Try asking
- Write a ripple layerEffect shader that reacts to a tap on my image.
- Add a holographic colorEffect to a card view driven by time.
- Use visualEffect to scale cards as they scroll into view.
Good to know
- Shader modifiers require iOS 17 or later, so older targets need fallbacks.
- Liquid Glass requires iOS 26; earlier versions use materials instead.
- .layerEffect is the most expensive shader option.
- .visualEffect is read-only and cannot trigger state updates.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/swiftui-graphics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 KB -
references/canvas-swiftui.md7 KB -
references/liquid-glass-deep.md8 KB -
references/metal-recipes.md12 KB
Alternatives to swiftui-graphics
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
swiftui-graphics: common questions
Which SwiftUI version does swiftui-graphics need for shaders?
The source says the Metal shader modifiers ship in iOS 17, and it says iOS 17 or later only. For older targets it suggests gradients, blur or Canvas.
What is the difference between colorEffect, distortionEffect and layerEffect?
colorEffect changes a pixel's color without neighbor access, distortionEffect moves pixels without changing colors, and layerEffect can sample anywhere within a set offset.
Does the skill cover Liquid Glass on iOS 26?
Yes. It shows glassEffect and GlassEffectContainer, and advises using glass sparingly on hero or chrome surfaces.
How do I install swiftui-graphics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is swiftui-graphics free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is swiftui-graphics safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to swiftui-graphics?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
