Docs
AnalyticsPro

Stats OverviewNew

The top of a dashboard: a headline metric and its change, a chart you scrub across 1W to 1Y, and metric tiles.

$npx swiftpieces add StatsOverviewBlock

Needs a SwiftPieces Pro license: npx swiftpieces login first.

Open in the Pro library View pricing Live preview in every Pro style, and its source with SwiftPieces Pro.
ProBlock · AnalyticsiOS 17+Themed by Pro's design system
Type
StatsOverviewBlock
Inside
Headline metric and its change, Chart you scrub, Range control from 1W to 1Y, Metric tiles
Install, with a Pro license
npx swiftpieces add StatsOverviewBlock
Depends on
Pro's Design System, which installs with it

The section at the top of an analytics or dashboard screen. One card holds the headline metric with its change against the previous period and a Swift Charts line you drag across to read any day, with the previous period dashed beneath and a 1W to 1Y control that morphs the line. Metric tiles sit below, and loading, empty and failed states are built in.

Its SwiftUI source comes with SwiftPieces Pro: Stats Overview in the Pro library.

All blocks →
SwiftPiecesPro

Build the whole app with one library.

Production-ready screens, whole flows, complete app templates, a Build Kit your agent follows and Pro remixing.

54 screens · 6 blocks · 48 flows · 12 templates · 31 Build Kit skills

Explore Pro