finds.dev← search

// the find

AppPear/ChartView

★ 5,632 · Swift · MIT · updated Mar 2026

ChartView made in SwiftUI

SwiftUI-native chart library for iOS 13+ covering line, bar, pie, and ring charts. Version 2.0 is a clean break from 1.x — modifier-based composition via environment keys instead of the old mutating-chain API. Aimed at iOS developers who want something simpler than Apple's Charts framework or who need iOS 13/14 support.

The composable modifier API is genuinely well-designed — layering BarChart and LineChart inside a shared ChartGrid for mixed charts is clean and idiomatic SwiftUI. The streaming data source (ChartStreamingDataSource with windowed auto-scroll) is a real feature that most chart libraries skip entirely. Performance mode with automatic downsampling kicks in above a configurable threshold, so you're not left manually slicing large datasets. The README includes an 'AI Agent Quick Context' section that explicitly documents the 2.x API contract and lists legacy APIs to avoid — unusual and practically useful.

Apple shipped Swift Charts in iOS 16 (now widely available), which has first-party accessibility, localization, and animation support baked in — the main reason to reach for this is iOS 13/15 compatibility, which is a shrinking use case. The pie and ring chart implementations look thin compared to the line/bar charts; no interaction events or value labels on slices from what's visible. Tests are mostly smoke tests and migration guide compliance checks, not behavioral coverage of rendering or layout logic. The 1.x to 2.x migration is a full rewrite with no deprecation path — existing projects using LineChartView or BarChartView have to touch every call site.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →