After a fair bit more debugging, I worked out what exactly in my code is causing the crash.
Through an error and a pretty rare set of steps, I was accidentally setting a view's size to be much too great. The view was in a scrollview which I suspect triggered springboard to explode.
Anyway I've fixed my issue. I will comment on the Feedback, and let them know what happened.
Post
Replies
Boosts
Views
Activity
I tried version 14.1 of Xcode and that still wouldn't let me install older simulators. I just tried Xcode 13.4.1 but that won't even run because it says it's not compatible with macOS Ventura.
Hi,
I've just started playing with swiftUI and the charts framework myself.
I copied your code verbatim, into a brand new project and it seems to be fine:
I did remove the axis labels to check if it made a difference and it still looks fine without them:
var body: some View {
GroupBox(label: Text("Daily Max Reps")) {
Chart(exerciseMaxRepsArray) { e in
LineMark(x: .value("Date", e.dateCompleted, unit: .day),
y: .value("Reps", e.reps))
}
}
}
This is with a brand new project with nothing but your code.
It seems strange that your axis's seem so wrong in the screenshot with the provided code.
Not sure if that helps, but wishing you the best of luck.