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.
Paging vertically
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
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.
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.
struct ActivityView: View {
var body: some View {
StatsScroll(cards: StatCard.samples) // twelve sample cards, one per chart type
}
}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")])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.
- 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.
- 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.
- Step 3
Copy Swift
Copy Swift writes your values into
StatsScroll.Tuningas 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.
StatsScroll(cards: cards,
axis: .horizontal,
tuning: .init(pageResponse: 0.5, pageDamping: 0.9, haptics: false))Paging11 dials
| Dial | Tuned | Range | What it does |
|---|---|---|---|
Page · responsepageResponse | 0.42 s | 0.2 – 1 s | The spring every card settles on, after a page drag or a fling. |
Page · dampingpageDamping | 0.751 | 0.5 – 1 | |
Page · fling decelerationpageDecay | 0.998 | 0.99 – 0.9995 | Momentum decay per ms; projects where a fling would rest (UIScrollView's formula). |
Page · edge rubber bandrubberBand | 0.55 | 0.2 – 1 | Resistance past the first and last card. |
Flight · 3D tilttiltAngle | 6 ° | -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 · perspectivetiltPerspective | 0.6 | 0 – 1.5 | 0 is flat; higher is a closer, stronger 3D. |
Flight · travelflyDistance | 1× | 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 edgeleaveScale | 0.9× | 0.6 – 1× | The leaving card shrinks to this; the incoming card starts from it. |
Flight · blur at the edgeflyBlur | 8 pt | 0 – 30 pt | The leaving card blurs to this; the incoming card sharpens from it. |
Flight · fade curvefadeCurve | 1.2 | 0.5 – 4 | Opacity falls as (1 − distance from place)^curve: higher fades the leaving card sooner and the incoming one later. |
Scroll bar · mark glide responsemarkResponse | 0.3 s | 0.1 – 0.8 s | The minimised scroll bar's position mark glides after the page on this critically damped spring. |
Preview growth and fold13 dials
| Dial | Tuned | Range | What it does |
|---|---|---|---|
Growth · lift responseliftResponse | 0.24 s | 0.1 – 0.8 s | The scroll bar thickens and steps in from the edge. |
Growth · lift dampingliftDamping | 0.86 | 0.4 – 1 | |
Growth · stretch responsestretchResponse | 0.42 s | 0.15 – 1 s | The bar stretches into the window, evenly from its centre, with a slight overshoot. |
Growth · stretch dampingstretchDamping | 0.72 | 0.4 – 1 | |
Growth · scroll speed that opens itgrowSpeed | 40 pt/s | 0 – 400 pt/s | The window grows out of the scroll bar once the cards move faster than this. |
Growth · stretch delaystretchDelay | 0.06 s | 0 – 0.3 s | Lift starts at 0 ms; the rim follows 40 ms after the stretch and the unfold 80 ms after. |
Growth · rim responserimInResponse | 0.3 s | 0.1 – 0.8 s | The current card swells into the rim (0.9 → 1.35×); the neighbours unfold on the same spring. |
Growth · rim dampingrimInDamping | 0.8 | 0.4 – 1 | |
Growth · unfold staggerunfoldStagger | 0.028 s | 0 – 0.08 s | Per neighbour, nearest first. |
Fold · responsefoldResponse | 0.32 s | 0.1 – 0.8 s | |
Fold · dampingfoldDamping | 0.9 | 0.5 – 1 | |
Fold · delay after settlingfoldDelay | 1.2 s | 0.3 – 4 s | |
Fold · staggerfoldStagger | 0.0595 s | 0 – 0.06 s | Per neighbour, furthest first. |
Preview window12 dials
| Dial | Tuned | Range | What it does |
|---|---|---|---|
Rim · magnificationrimScale | 1.35× | 1 – 1.7× | |
Rim · stretch at speedrimStretch | 0.06 | 0 – 0.15 | Along the scroll axis, at 3,000 pt/s. |
Rim · stretch responserimStretchResponse | 0.2 s | 0.08 – 0.6 s | |
Snap · rim pulsepulseScale | 1.05× | 1 – 1.15× | |
Snap · pulse responsepulseResponse | 0.25 s | 0.1 – 0.6 s | |
Snap · pulse dampingpulseDamping | 0.6 | 0.3 – 1 | |
Scrub · cards follow responsescrubResponse | 0.28 s | 0.1 – 0.8 s | While the list is scrubbed, the cards follow it on this spring. |
Scrub · cards follow dampingscrubDamping | 0.9 | 0.5 – 1 | |
Scrub · fling decelerationlistDecay | 0.998 | 0.99 – 0.9995 | |
Edges · return responseedgeResponse | 0.4 s | 0.15 – 0.9 s | |
Fade · opacity per cardfadeRate | 0.66 | 0.3 – 0.95 | Each step away from the rim keeps this share of the opacity. |
List · upcoming cards after the rimmirrorList | on | on / off | Off: upcoming cards sit above the rim, or right of it when horizontal (the way the scroll bar runs). On swaps both. |
Haptics3 dials
| Dial | Tuned | Range | What it does |
|---|---|---|---|
Hapticshaptics | on | on / off | |
Haptics · settle and growth peaklandIntensity | 0.5 | 0 – 1 | The soft impact as a card lands under the rim and at the peak of the growth. |
Haptics · edge bumpedgeIntensity | 0.7 | 0 – 1 |
Card arrival10 dials
| Dial | Tuned | Range | What it does |
|---|---|---|---|
Arrival · headline responsenumberResponse | 0.5 s | 0.2 – 1.2 s | |
Arrival · marks responsemarksResponse | 0.45 s | 0.15 – 1 s | Bars rise, cells cascade, segments light, dots pop. |
Arrival · marks dampingmarksDamping | 0.7 | 0.4 – 1 | |
Arrival · sweeps responsesweepResponse | 0.6 s | 0.2 – 1.2 s | Lines draw on and slices sweep. |
Arrival · sweeps dampingsweepDamping | 0.8 | 0.5 – 1 | |
Arrival · staggermarkStagger | 0.03 s | 0 – 0.08 s | |
Arrival · change pill delaypillDelay | 0.12 s | 0 – 0.6 s | |
Arrival · chart delaychartDelay | 0.16 s | 0 – 0.6 s | |
Arrival · callout delaycalloutDelay | 0.26 s | 0 – 0.8 s | |
Arrival · replay on returnreplayArrival | on | on / off |
Charts8 dials
| Dial | Tuned | Range | What it does |
|---|---|---|---|
Charts · hold to scrubholdDuration | 0.22 s | 0.08 – 0.6 s | Touch and hold this long to scrub along the paging direction. |
Charts · selection responseselectResponse | 0.28 s | 0.1 – 0.8 s | Highlights, callouts and the headline follow the finger on this spring. |
Charts · selection dampingselectDamping | 0.82 | 0.4 – 1 | |
Charts · other marks dim todimOpacity | 0.35 | 0.1 – 1 | |
Charts · selection lingerslinger | 2.5 s | 0.5 – 8 s | |
Donut · slice poppopDistance | 7 pt | 0 – 16 pt | |
Heatmap · cell liftcellLift | 1.3× | 1 – 1.6× | |
Charts · headline follows the selectionheroReadout | on | on / off |
Theme and axis3 dials
| Dial | Tuned | Range | What it does |
|---|---|---|---|
Axis · responseaxisResponse | 0.45 s | 0.2 – 1 s | |
Axis · dampingaxisDamping | 0.85 | 0.5 – 1 | |
Theme · cross-fade responsethemeResponse | 0.35 s | 0.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.
curl -fsSL https://prokinetic.app/install.sh | bashDeveloper preview, not yet notarized — that's why it installs with a script instead of a .dmg.
Read the scriptInstalls to /ApplicationsSHA-256 checkedNotarized build with 1.0
For Mac · macOS 26+ · Founders: 14-day money-back guarantee