ChartView is a SwiftUI-native chart library for iOS that provides composable, modifier-based APIs for building interactive visualizations.
The library addresses the need for native SwiftUI charting by moving away from legacy imperative patterns toward immutable configuration and environment-driven composition. Charts are built by applying ViewModifier chains to specify data, ranges, styling, grid configuration, axis labels, and interaction behavior. The approach supports line, bar, and pie charts, with capabilities for mixed chart types, shared interaction state, callback-based selection, streaming data sources, and performance optimization for large datasets.
Developers should choose this tool if they are building iOS 13+ applications and want charts that integrate seamlessly with SwiftUI's declarative paradigm. The library suits projects ranging from simple single-chart views to complex dashboards with synchronized interaction across multiple visualizations. The major release represents a significant architectural shift; teams currently using the legacy API should review the migration guide before upgrading, as the old imperative methods and view types are no longer supported.
The project maintains comprehensive documentation including a wiki with dedicated guides for getting started, composable modifiers, interaction patterns, streaming data, performance tuning, and axis alignment. An example showcase application demonstrates all major features. The codebase includes a privacy manifest for Apple compliance. Migration documentation is provided to help teams transition from the previous major version.