SwiftUICharts (ChartView) builds line, bar, pie, and mixed charts for iOS 13+ with modifier-based configuration and streaming data support.
Overview
SwiftUICharts is a Swift Package for iOS that composes charts from SwiftUI views and modifiers rather than legacy monolithic chart types. Version 2.x centers on immutable configuration, environment-driven composition, and explicit data semantics.
Developers attach chartData for categorical or continuous domains, set ranges and styles through modifiers, configure grid lines and axis labels, and wire interaction through shared state or selection handlers. Streaming sources pair with chartData(stream) and performance tuning for large datasets.
Installation uses Swift Package Manager with the 2.0.0 tag range. A showcase app demonstrates the major features and migration notes guide upgrades from the 1.x API.
Key features
- Modifier-based chart composition
- Line, bar, pie, and mixed charts
- Explicit categorical versus continuous data
- Grid, axis, and line styling modifiers
- Shared and callback chart interaction
- Streaming data source support
- Performance mode for large datasets
- Unified axis and label alignment helpers
Use cases
- Line or bar charts in SwiftUI iOS apps
- Mixed bar and line visualizations
- Live updating metrics with streaming data
- Migrating SwiftUI projects from 1.x chart APIs