Missing tuple symbols in Charts.

This is Version 13.0 Beta (22A5311f)

I see a crash in charts when I try to add more than one item to a Chart.

    var body: some View {
        Chart {
            BarMark(
                x: .value("Shape Type", data[0].type),
                y: .value("Total Count", data[0].count)
            )
            BarMark(
                x: .value("Shape Type", data[1].type),
                y: .value("Total Count", data[1].count)
            )
        }
    }
}

This doesn't crash with one item, which isn't a very useful chart. The crash is in the tuple code.

Charts17TupleChartContentVMn

_  Referenced from: /Users/eoinkortext/Library/Developer/Xcode/DerivedData/Chartest-cviqvlwnwkwzpncsusfuscqjflgt/Build/Products/Debug/Chartest.app/Contents/MacOS/Chartest_

I have logged this in FA already, just posting to see if it is well known, or I am on my own with this.

Please, post an example data structure, I'll try to figure it out and help you.

This is all from Apple's example code. Nothing difficult.

`var data: [ToyShape] = [
    .init(type: "Cube", count: 5),
    .init(type: "Sphere", count: 4),
    .init(type: "Pyramid", count: 4)
]


struct ToyShape: Identifiable {
    var type: String
    var count: Double
    var id = UUID()
}`
Accepted Answer

Turns out it was a mismatch between the Xcode version and the Beta version, probably something to do with SwiftUi headers? Anyway updating solved it.

Missing tuple symbols in Charts.
 
 
Q