Last active
June 10, 2022 09:14
-
-
Save meyusufdemirci/03b867c6de2d61c009b309245f564a97 to your computer and use it in GitHub Desktop.
What is New in SwiftUI, WWDC 22 Article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let chartData: [KeyValue] = [ | |
.init(key: "A", value: 5), | |
.init(key: "B", value: 10), | |
.init(key: "C", value: 15) | |
] | |
var body: some View { | |
Chart(chartData) { | |
BarMark(x: .value("Key", $0.key), | |
y: .value("Value", $0.value)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment