ChartsOrg / Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Apache License 2.0
27.43k stars 5.97k forks source link

Add MainActor attribute to ChartViewDelegate. #5179

Open beckj-prestolabs opened 3 weeks ago

beckj-prestolabs commented 3 weeks ago

Issue Link :link:

Goals :soccer:

This warning might be going to be an error in Swift 6. Need to fix and remove this warning.

Implementation Details :construction:

By adding this attribute to ChartViewDelegate, we explicitly marked it as MainActor. Since UIViewController and UIView also have the MainActor attribute by default, there should be no practical change in behavior.