Analysis updated 2026-05-18
Add a holographic shimmer or glitch effect to images in an iOS app.
Animate book covers or media thumbnails with liquid chrome or kaleidoscope effects.
Build a slider-based tuning UI for shader parameters using the included JSON spec.
| krispuckett/swiftuishaders | radiofun/bottomgradientshader | erikkaum/maxsim | |
|---|---|---|---|
| Stars | 164 | 23 | 17 |
| Language | Metal | Metal | Metal |
| Setup difficulty | moderate | easy | moderate |
| Complexity | 2/5 | 2/5 | 4/5 |
| Audience | developer | developer | researcher |
Figures from each repo's GitHub metadata at analysis time.
Requires iOS 17 / macOS 14+ and must be built with Xcode, not the plain Swift CLI, because Metal shaders need the full toolchain.
SwiftUIShaders is a Swift package containing 41 visual effects for iOS and macOS apps built with SwiftUI. The effects are written in Metal, which is Apple's low-level graphics language, and each one is wrapped in a SwiftUI view modifier so you can apply it to any image, text, or view with a single line of code. Examples include a holographic foil shimmer, kaleidoscope patterns, a glitch effect, neon edge highlighting, heat shimmer, liquid chrome, magnetic field lines, and a shatter animation, among many others. The author originally built these for a reading app called Epilogue, using them on book covers. The ones included here were kept because they looked good on real photographic content, effects that only worked on blank backgrounds or gradients were removed. The package requires iOS 17, macOS 14, or tvOS 17 and later, and must be built with Xcode rather than the plain Swift command-line tools because compiling Metal shaders requires the full Xcode toolchain. Most of the included effects are animated and run themselves using SwiftUI's timeline system, so you do not need to manage any timers. Each modifier has default parameter values that produce a good result with no arguments, and you can adjust individual parameters like intensity, speed, or color to tune the look. A JSON file in the repository describes all parameters for all shaders, and the project includes notes aimed at AI coding assistants explaining how to build a slider-based tuning interface using that data. Installing it uses Swift Package Manager. You add the repository URL in Xcode's package dependency panel or in a Package.swift file, then import SwiftUIShaders and call any modifier on a view. The package supports iOS, macOS, tvOS, and visionOS.
A Swift package with 41 ready-made Metal visual effects you attach to any SwiftUI view with one modifier line.
Mainly Metal. The stack also includes Swift, SwiftUI, Metal.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.