All blocks

Block 01 · Fitness

Stats Scroll

Full-height stats cards with 12 interactive charts. They page on springs, and a floating glass window of thumbnails lets you scrub through them.

4K · 60 fps · 23 s

Paging vertically

Open in ProKinetic

Stats Scroll is in the app's Library (ProKinetic 0.10 or later). Tune it in Tuner, then Copy Swift or Add to Project. Get ProKinetic

Get it
In ProKinetic's Library
File
StatsScroll.swift · 4,358 lines · 185 KB
Runs on
iOS 17+ · macOS 14+
Needs
SwiftUI only · build with Xcode 26+
Tuning
60 dials in ProKinetic Tuner
Licence
MIT · use it anywhere
[ 01 ]What it does

Motion you'd tune for a week, already tuned.

  • Pages on springs

    The leaving card tips back, shrinks, blurs and flies out at the edge while the next one arrives from the other side. The card under your finger follows it, and a fling lands where UIScrollView's deceleration says it would.

  • Scrubs through a glass window

    While the cards move, the slim scroll bar grows into a floating window of card thumbnails, with the current card magnified under a silver rim. It folds back into the bar once the cards settle. It uses Liquid Glass on iOS 26 and macOS 26, and a material before that.

  • 12 charts that answer back

    Bars, line with a range band, sleep stages, gauge, donut, heat map, horizontal bars, lollipop, trend, ranges, waffle and bullet. Each one answers a tap and a touch-and-hold scrub, and the headline follows the selection.

  • Accessible and plug and play

    VoiceOver scrolls the pages and adjusts every chart, and Reduce Motion swaps the flight for a fade. Each card takes a tint and derives every colour from it, so any mix of tints looks consistent.

[ 02 ]Use it

Drop StatsScroll.swift into your target.

Get it from the Library in ProKinetic: Copy Swift or Add to Project hands you the file with your tuned values. It has no dependencies and no setup. The twelve sample cards show every chart's data, so start from them and swap in your own.

ActivityView.swift
struct ActivityView: View {
    var body: some View {
        StatsScroll(cards: StatCard.samples)   // twelve sample cards, one per chart type
    }
}
Your own card
StatCard(id: "steps", title: "Steps", symbol: "figure.walk", tint: .orange, context: "This week",
         value: "48,210", unit: "steps",
         change: .init(tone: .good, direction: .up, text: "12%", note: "vs last week"),
         chart: .bars(.init(values: steps, labels: ["M", "T", "W", "T", "F", "S", "S"], names: week,
                            maxValue: 12000, goal: 8000, goalLabel: "Goal 8,000", unit: "steps")),
         footer: [.init(label: "Daily avg", value: "6,887"), .init(label: "Best day", value: "Thursday")])
[ 03 ]Tune it in ProKinetic Tuner

60 dials. Every spring, delay and threshold.

Tuner is ProKinetic's live editor for SwiftUI motion on the Mac. Stats Scroll opens on its canvas with a dial for every value it uses, grouped the way the list below is.

  1. Step 1

    Open it in Tuner

    Open in ProKinetic, above, takes you to Stats Scroll in the app's Library (View ▸ Library, ⇧⌘L), where Open in Tuner puts it on the canvas with every dial ready. It needs ProKinetic 0.10 or later: install or update with the same command.

  2. Step 2

    Drag the dials

    The cards answer as you drag. Slow the canvas down to watch a spring settle, and flick through the cards to feel the paging at full speed.

  3. Step 3

    Copy Swift

    Copy Swift writes your values into StatsScroll.Tuning as the new defaults, so the file you paste is the one you tuned.

Or change them in code

Every dial that tunes the component is a field on StatsScroll.Tuning. Pass the ones you want to change, and the rest keep their tuned values. Response is the spring's period in seconds (lower is quicker). Damping runs from 0 to 1: lower overshoots and wobbles, and 1 settles without overshoot.

Tuning
StatsScroll(cards: cards,
            axis: .horizontal,
            tuning: .init(pageResponse: 0.5, pageDamping: 0.9, haptics: false))
Paging11 dials
DialTunedRangeWhat it does
Page · responsepageResponse0.42 s0.2 – 1 sThe spring every card settles on, after a page drag or a fling.
Page · dampingpageDamping0.7510.5 – 1
Page · fling decelerationpageDecay0.9980.99 – 0.9995Momentum decay per ms; projects where a fling would rest (UIScrollView's formula).
Page · edge rubber bandrubberBand0.550.2 – 1Resistance past the first and last card.
Flight · 3D tilttiltAngle6 °-45 – 45 °How far a card tips away at an edge: the leaving card as it flies out, the incoming card as it arrives. Negative tips toward you.
Flight · perspectivetiltPerspective0.60 – 1.50 is flat; higher is a closer, stronger 3D.
Flight · travelflyDistance1×0.2 – 1.2×How far a card travels between its place and the edge, in card lengths. The finger drags this far for one card, so the card under it follows.
Flight · scale at the edgeleaveScale0.9×0.6 – 1×The leaving card shrinks to this; the incoming card starts from it.
Flight · blur at the edgeflyBlur8 pt0 – 30 ptThe leaving card blurs to this; the incoming card sharpens from it.
Flight · fade curvefadeCurve1.20.5 – 4Opacity falls as (1 − distance from place)^curve: higher fades the leaving card sooner and the incoming one later.
Scroll bar · mark glide responsemarkResponse0.3 s0.1 – 0.8 sThe minimised scroll bar's position mark glides after the page on this critically damped spring.
Preview growth and fold13 dials
DialTunedRangeWhat it does
Growth · lift responseliftResponse0.24 s0.1 – 0.8 sThe scroll bar thickens and steps in from the edge.
Growth · lift dampingliftDamping0.860.4 – 1
Growth · stretch responsestretchResponse0.42 s0.15 – 1 sThe bar stretches into the window, evenly from its centre, with a slight overshoot.
Growth · stretch dampingstretchDamping0.720.4 – 1
Growth · scroll speed that opens itgrowSpeed40 pt/s0 – 400 pt/sThe window grows out of the scroll bar once the cards move faster than this.
Growth · stretch delaystretchDelay0.06 s0 – 0.3 sLift starts at 0 ms; the rim follows 40 ms after the stretch and the unfold 80 ms after.
Growth · rim responserimInResponse0.3 s0.1 – 0.8 sThe current card swells into the rim (0.9 → 1.35×); the neighbours unfold on the same spring.
Growth · rim dampingrimInDamping0.80.4 – 1
Growth · unfold staggerunfoldStagger0.028 s0 – 0.08 sPer neighbour, nearest first.
Fold · responsefoldResponse0.32 s0.1 – 0.8 s
Fold · dampingfoldDamping0.90.5 – 1
Fold · delay after settlingfoldDelay1.2 s0.3 – 4 s
Fold · staggerfoldStagger0.0595 s0 – 0.06 sPer neighbour, furthest first.
Preview window12 dials
DialTunedRangeWhat it does
Rim · magnificationrimScale1.35×1 – 1.7×
Rim · stretch at speedrimStretch0.060 – 0.15Along the scroll axis, at 3,000 pt/s.
Rim · stretch responserimStretchResponse0.2 s0.08 – 0.6 s
Snap · rim pulsepulseScale1.05×1 – 1.15×
Snap · pulse responsepulseResponse0.25 s0.1 – 0.6 s
Snap · pulse dampingpulseDamping0.60.3 – 1
Scrub · cards follow responsescrubResponse0.28 s0.1 – 0.8 sWhile the list is scrubbed, the cards follow it on this spring.
Scrub · cards follow dampingscrubDamping0.90.5 – 1
Scrub · fling decelerationlistDecay0.9980.99 – 0.9995
Edges · return responseedgeResponse0.4 s0.15 – 0.9 s
Fade · opacity per cardfadeRate0.660.3 – 0.95Each step away from the rim keeps this share of the opacity.
List · upcoming cards after the rimmirrorListonon / offOff: upcoming cards sit above the rim, or right of it when horizontal (the way the scroll bar runs). On swaps both.
Haptics3 dials
DialTunedRangeWhat it does
Hapticshapticsonon / off
Haptics · settle and growth peaklandIntensity0.50 – 1The soft impact as a card lands under the rim and at the peak of the growth.
Haptics · edge bumpedgeIntensity0.70 – 1
Card arrival10 dials
DialTunedRangeWhat it does
Arrival · headline responsenumberResponse0.5 s0.2 – 1.2 s
Arrival · marks responsemarksResponse0.45 s0.15 – 1 sBars rise, cells cascade, segments light, dots pop.
Arrival · marks dampingmarksDamping0.70.4 – 1
Arrival · sweeps responsesweepResponse0.6 s0.2 – 1.2 sLines draw on and slices sweep.
Arrival · sweeps dampingsweepDamping0.80.5 – 1
Arrival · staggermarkStagger0.03 s0 – 0.08 s
Arrival · change pill delaypillDelay0.12 s0 – 0.6 s
Arrival · chart delaychartDelay0.16 s0 – 0.6 s
Arrival · callout delaycalloutDelay0.26 s0 – 0.8 s
Arrival · replay on returnreplayArrivalonon / off
Charts8 dials
DialTunedRangeWhat it does
Charts · hold to scrubholdDuration0.22 s0.08 – 0.6 sTouch and hold this long to scrub along the paging direction.
Charts · selection responseselectResponse0.28 s0.1 – 0.8 sHighlights, callouts and the headline follow the finger on this spring.
Charts · selection dampingselectDamping0.820.4 – 1
Charts · other marks dim todimOpacity0.350.1 – 1
Charts · selection lingerslinger2.5 s0.5 – 8 s
Donut · slice poppopDistance7 pt0 – 16 pt
Heatmap · cell liftcellLift1.3×1 – 1.6×
Charts · headline follows the selectionheroReadoutonon / off
Theme and axis3 dials
DialTunedRangeWhat it does
Axis · responseaxisResponse0.45 s0.2 – 1 s
Axis · dampingaxisDamping0.850.5 – 1
Theme · cross-fade responsethemeResponse0.35 s0.1 – 1 s

Feel it.

Shape it.

Ship it.

The developer preview is out: one line in Terminal, and it's free for 14 days. Founders get both products and every future update for $97, while the 50 seats last.

Install · 14 days free
curl -fsSL https://prokinetic.app/install.sh | bash

Developer preview, not yet notarized — that's why it installs with a script instead of a .dmg.

For Mac · macOS 26+ · Founders: 14-day money-back guarantee

Become a founder — both included50 seats, until 1.0