Liquid Chrome

Animated liquid chrome surface rendered via a SwiftUI Metal stitchable shader, with three sequentially domain-warped value-noise samples, a gamma-shaped chrome curve, and high-power specular glints

Free
Free with a ShipSwift account.

Copies a short instruction with your private download link. Paste it into your agent: it downloads the whole skill (the source code, the setup steps and the mistakes we already made for you) and builds the screen.

Works with

+70

What it does

Full-screen animated polished-metal surface rendered through SwiftUI's colorEffect Metal pipeline. Three sequentially domain-warped value-noise samples produce a fluid metallic flow; the third sample drives a gamma-shaped chrome curve plus a high-power specular glint. Four user-tunable colors define the shadow / silver / highlight / accent ramp, and a baked-in cool spec tint always reads as polished metal.

Requires iOS 18+ / macOS 15+.

What you get

  • ✓356 lines of source code, ready to paste
  • ✓File Layout
  • ✓Source Code
  • ✓Usage
  • ✓Parameters
  • ✓Integration Checklist
  • ✓Notes / Gotchas
animationmetalshaderchromebackgroundSwiftUI

Usage

// Default — cool blue chrome, full-screen
ZStack {
    SWLiquidChrome()
        .ignoresSafeArea()
    // Your content here
}

// Recolor — warm gold chrome
SWLiquidChrome(
    shadow: .brown,
    silver: .yellow.opacity(0.4),
    highlight: .white,
    tint: .orange
)

// As a section background
myContent
    .background { SWLiquidChrome() }

// Tighter, sharper glints
SWLiquidChrome(specPower: 24, specStrength: 0.5)

Parameters

ParameterTypeDefaultRangeNotes
shadowColor#05030D (near-black)—Color of the chrome shadow valleys
silverColor#333340 (cool grey)—Mid-tone metallic color
highlightColor#808099 (lit silver)—Color of the brightest reflections
tintColor#263366 (deep blue)—Subtle accent layered in via the first warp sample
speedFloat0.30…3Multiplier on the internal time evolution
scaleFloat2.00.2…5Spatial scale of the noise field — higher = finer detail
warpFloat1.50…5Strength of the inter-sample domain warp
contrastFloat0.60.1…3Gamma exponent on the chrome curve — higher = steeper shadow falloff
specPowerFloat121…50Exponent of the specular power-curve — higher = tighter, sharper glints
specStrengthFloat0.30…2Multiplier on the specular additive layer
tintStrengthFloat0.150…2Multiplier on the tint additive layer
showsControlsBoolfalse—Demo-only gear ToolbarItem; requires an enclosing NavigationStack

Integration Checklist

  1. Copy SWLiquidChrome.swift and SWLiquidChrome.metal into your Xcode target.
  2. Confirm the deployment target is iOS 18+ / macOS 15+.
  3. Use it as a ZStack background with .ignoresSafeArea() for full-bleed, or behind a card / hero element.
  4. Pick a shadow / silver / highlight / tint palette per the desired metal — cool blue (default), warm gold (.brown / .yellow.opacity(0.4) / .white / .orange), bronze, etc.
  5. Use higher specPower for sharper, more "mirror-like" reflections; lower for a softer brushed-metal look.

Notes / Gotchas

  • The specular highlight is biased with a baked-in cool tint (0.6, 0.6, 0.8) so glints always read as polished metal even when the user colors are warm. Hard-coded by design — do not parameterize it.
  • The shader runs three sequential value-noise samples per pixel — cheaper than the FBM-based clouds (no octave loop) but the chain dependency limits parallelism. Keep to one full-screen instance.
  • scale and contrast are both clamped internally to >= 0.0001 so zero / negative input is safe.
  • When showsControls is true, the gear button is a native ToolbarItem — the call site must be inside a NavigationStack.

More in Effects and animation

Metal shaders: fields of dots that roll like waves and flow into living patterns, all drawn on the GPU.
Metal dot fields
Free
Metal shaders: fields of dots that roll like waves and flow into living patterns, all drawn on the GPU.
A deep-space starfield in Metal: glowing nebulae drift past twinkling stars.
Deep-space starfield
Free
A deep-space starfield in Metal: glowing nebulae drift past twinkling stars.
Neon outlines that bloom from the center with prism-colored edges, rendered live in Metal.
Neon outlines
Free
Neon outlines that bloom from the center with prism-colored edges, rendered live in Metal.
Colored blobs that drift, melt into one another like liquid, and blend their colors as they merge.
Liquid metaballs
Free
Colored blobs that drift, melt into one another like liquid, and blend their colors as they merge.
A 3D network graph you can spin. Tap any node and its links light up, with the details below.
3D network graph
Free
A 3D network graph you can spin. Tap any node and its links light up, with the details below.
Items orbit into a dotted ring, and payment cards fan out of a wallet as the balance rolls in.
Orbit ring and wallet
Free
Items orbit into a dotted ring, and payment cards fan out of a wallet as the balance rolls in.
A field of bright colored dots that float and shimmer across the whole screen.
Floating color dots
Free
A field of bright colored dots that float and shimmer across the whole screen.
Stacked glass panels in mirrored layers, with neon gradients flowing through them.
Glass color panels
Free
Stacked glass panels in mirrored layers, with neon gradients flowing through them.
Drag the slider and scattered points of light pull together into a perfect 3D sphere.
Dot sphere
Free
Drag the slider and scattered points of light pull together into a perfect 3D sphere.
Living patterns: a mosaic of cells that keeps reshaping, then a hypnotic color swirl.
Cells and swirl
Free
Living patterns: a mosaic of cells that keeps reshaping, then a hypnotic color swirl.
Organic noise shaders: glowing veins that pulse through the dark, then bold color blobs in constant flow.
Noise veins and blobs
Free
Organic noise shaders: glowing veins that pulse through the dark, then bold color blobs in constant flow.