willdale / SwiftUICharts

A charts / plotting library for SwiftUI. Works on macOS, iOS, watchOS, and tvOS and has accessibility features built in.
MIT License
837 stars 103 forks source link

Publishing changes from within view updates is not allowed #223

Open mvolkmann opened 1 year ago

mvolkmann commented 1 year ago

I get that warning from LineChartData.swift. The @Published properties where this happens are viewData and infoView.

mvolkmann commented 1 year ago

See https://www.donnywals.com/xcode-14-publishing-changes-from-within-view-updates-is-not-allowed-this-will-cause-undefined-behavior/.

mvolkmann commented 1 year ago

I tried running my app in Xcode 14 beta 3 and these warnings did not go away.

mvolkmann commented 1 year ago

I get a total of 420 warnings (all the same issue) in my app from displaying one line chart. This makes it difficult to find the output of my print statements.