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, this will cause undefined behavior. #226

Closed owenzhao closed 1 year ago

owenzhao commented 1 year ago

After upgrading to Ventura, I got this purple alert a lot. Xcode 14.1 RC2.

截屏2022-10-30 07 31 15

SwiftUICharts 2.10.0.

longvudai commented 1 year ago
Screenshot 2022-10-30 at 11 37 13

I have the same problem

mehroozkhan commented 1 year ago

same here.

gesabo commented 1 year ago

same issue, however I am noticing that simply adding @Environment(\.scenePhase) var scenePhase (not even calling the scenePhase) causes the error, if I remove it, no error. Might this help @willdale ?

MehdiAbdi commented 1 year ago

I have the same issue.

Arangott commented 1 year ago

I am also facing this issue. Getting more than 200 warnings.

Screenshot 2023-02-28 at 12 13 00