SwiftUI Charts are a flexible, relatively simple way to generate data displays for your application. Apple uses them, in a lot of their own applications.
By default, they are fairly static displays, but it’s possible to add some interactivity to them.
In this series, we’ll take a basic static bar chart, and add two gestures to it: A tap/swipe gesture, to indicate selection of an X-axis point, and a magnification (pinch) gesture, to “zoom in” to specific ranges, on the X-axis.
In this post, we’ll start with a small running SwiftUI app, displaying a simple, static, bar chart.