Concurrency warning when conforming `ChartViewDelegate` with MainActor attribute.
beckj-prestolabs opened this issue · comments
- [v] I've read, understood, and done my best to follow the *CONTRIBUTING guidelines.
What did you do?
In Xcode 15, I conformed ChartViewDelegate
to assign it to LineChartView
.
What did you expect to happen?
LineChartView works fine with no warning.
What happened instead?
The following warning is displayed on the implemented functions.
Main actor-isolated instance method 'chartValueSelected(_:entry:highlight:)' cannot be used to satisfy nonisolated protocol requirement
DGCharts Environment
DGCharts version/Branch/Commit Number: v5.1.0
Xcode version: 15.4
Swift version: 5.9
Platform(s) running DGCharts: iOS 17.5 Simulator
macOS version running Xcode: macOS Sonoma 14.5
Demo Project
![Screenshot 2024-06-24 at 10 09 45 PM](https://private-user-images.githubusercontent.com/170295967/342349608-673dc8ed-4471-4e55-b64b-0985d6f335a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3NjM1NDAsIm5iZiI6MTcyMTc2MzI0MCwicGF0aCI6Ii8xNzAyOTU5NjcvMzQyMzQ5NjA4LTY3M2RjOGVkLTQ0NzEtNGU1NS1iNjRiLTA5ODVkNmYzMzVhMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyM1QxOTM0MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMGNiMjg4OWRiMDdmNWE1ZGRiOTVmYWM3YjZjM2RhNGEwOWQ4NzJjODU0ZmJjOTgwYzJjNWY1YjFmMzMwOTM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.oWJjtYhRw8kLXEd_oWkh0LXLR73zK_eHon9CL3_HPa4)