Reading time: 1 min

This recipe shows how to add a Bar Chart to SwiftUI using Apple's new Charts Framework. The end result looks like this:

Screenshot%202022-06-13%20at%2010.15.56Screenshot%202022-06-13%20at%2010.16.46

Charts framework is available starting in SwiftUI 4 (iOS 16, macOS 12.4).

Let's start off by creating a simple structure that represents how many calories we ate ea...

Continue Reading...