xeerpe

xeerpe

Scroll

Chainable effects for SwiftUI.

Drawn by Metal.
Moved by the device in your hand.

Start.

Add the package in Xcode, then import it.

File › Add Package Dependencies.

.package(url: "https://github.com/lupodevelop/swift-xeerpe", branch: "main")
import xeerpe

card.xeerpe(.card(.holographic, .tilt))

01

Turn it in your hand.

A card from the catalog, a glare and a 3D tilt.

The light follows the phone. On a Mac, the pointer.

card.xeerpe(.card(.holographic, .tilt, angle: 22))

02

Let it flow.

Surfaces are Metal shaders, not pictures.

A finger on the view pulls the flow toward it.

view.xeerpe(.aurora())

03

Touch the surface.

Each tap sends a wave through the water.

The wave bends the content too: text, images, controls.

view.xeerpe(.pond())

04

Pour it in.

A reveal driven by any value you own.

Here the value is how far you scrolled.

view.xeerpe(.fluidReveal(progress: .binding($progress)))

And more

77 effects. 25 presets.
229 catalog surfaces.

The scenes above are a few of them. Every effect chains with the others and reads the same signals.

Basics

  • .blur
  • .opacity
  • .scale
  • .gradient
  • .fill
  • .pulse
  • .breathe
  • .shimmer
  • .backdrop
  • .surface
  • .preset

Light

  • .glow
  • .bloom
  • .aura
  • .edgeGlow
  • .spotlight
  • .borderBeam
  • .halation
  • .lightLeak
  • .glare

Metals and finishes

  • .chrome
  • .foil
  • .holo
  • .pearl
  • .brushed
  • .guilloche
  • .bevel
  • .emboss
  • .sparkle

Film and print

  • .grade
  • .grain
  • .gradientMap
  • .duo
  • .vignette
  • .halftone
  • .dither
  • .riso
  • .colorBleed
  • .toon

Old screens

  • .scanlines
  • .phosphor
  • .barrel
  • .flicker
  • .tracking
  • .glitch
  • .pixelate
  • .ascii
  • .matrix

Reveal and hide

  • .reveal
  • .hoverReveal
  • .inkReveal
  • .torch
  • .focusReveal
  • .spoiler
  • .scratch
  • .blurSweep
  • .privacy

Liquid and particles

  • .liquid
  • .ripple
  • .lens
  • .gooey
  • .smoke
  • .sparks
  • .burn
  • .embers
  • .genie
  • .starfield
  • .dotField

Depth and touch

  • .tilt3D
  • .card
  • .viewAngle
  • .glass
  • .transfer
  • .transferSource
  • .transferTarget
  • .feedback
  • .loading

Composition

Effects are links.
Presets are chains.

  1. 01 · A preset
    view.xeerpe(.aurora())
  2. 02 · Your own chain
    view.xeerpe { .liquid(.ocean, speed: 0.6).lens(radius: 70) }
  3. 03 · A preset, edited
    XeerpeChain.pond().without(.distortion).adding { .lens(radius: 80) }

Everything moves
on a signal.

Sensors, gestures and async work arrive as values. Any effect can read them, remap them and combine them.

Ecosystem

One philosophy.
Three APIs.

Effects as chains, presets you can take apart. Each package speaks its own platform's language.

Swift

xeerpe for SwiftUI

Metal shaders, reactive to tilt, touch and time. Native on every Apple platform.

File › Add Package Dependencies
view.xeerpe { .preset(.gold, reacting: .tilt) }

TypeScript

xeerpe

CSS backgrounds and gradient text as one chain. Any framework, zero dependencies. By Nicola Centonze.

npm install xeerpe
new Preset("gold").grain({ intensity: 1.5 }).toStyle()
xeerpe.io ↗npm ↗

Gleam

xeerpe for Gleam

A typed binding for the JavaScript target, with xeerpe bundled. Unknown presets are an Error, not an exception.

gleam add xeerpe
let assert Ok(gold) = xeerpe.preset("gold")
gold |> xeerpe.grain(xeerpe.grain_options) |> xeerpe.to_style
Hex ↗Docs ↗