Closed YoelL closed 2 years ago
@YoelL I see that you closed this issue. What was the resolution? I am having the same crash.
@YoelL I see that you closed this issue. What was the resolution? I am having the same crash.
I think the .chartStyle( ) modifier must need to add.
Hi, yes it was probably that.
Followed the Beta 2 how to page and got a crash.
Description
Console Message: SwiftUI/EnvironmentObject.swift:70: Fatal error: No ObservableObject of type ChartStyle found. A View.environmentObject(_:) for ChartStyle may be missing as an ancestor of this view.
Expected Behavior
See a line/ bar chart
Actual Behavior
App crashes
Possible Fix
Steps to Reproduce
Follow this: https://github.com/AppPear/ChartView/wiki/How-to-create-your-first-chart
Your Environment