ChartsOrg / Charts

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

Add MainActor attribute to ChartViewDelegate. #5179

Open beckj-prestolabs opened 5 months ago

beckj-prestolabs commented 5 months 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.