Skip to main content
Jeden Skill in Manus ausführen
mit einem Klick

swiftui-metal-shaders

Sterne0
Forks0
Aktualisiert10. Juli 2026 um 05:37

How to write and integrate Metal shaders into SwiftUI views using the iOS 17+ [[stitchable]] shader API. Use this skill whenever the user wants to add a Metal shader to a SwiftUI view, use .colorEffect / .distortionEffect / .layerEffect, pass arguments to a shader via ShaderLibrary, animate a shader with TimelineView, warm up shader compilation with Shader.compile(as:), or debug silent shader failures. Also use when the user asks about SwiftUI::Layer, stitchable attribute, Shader.Argument types, or maxSampleOffset. Trigger even for seemingly simple shader tasks — the API has many silent-failure pitfalls that this skill documents.

Installation

Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.

SKILL.md
readonly