How to get at a value in a coordinator class of a UIRepresentable?
问题 I am using the charts package to display the elevation, when I tap the chart I get the index of the point and I want to use that index to place a marker on the map above it. I.e locations[index].coordinate. I have the following code and I am trying to pass the index value to my mapView that is also using UIRepresentable to display the map, but I'm having a hard time figuring out how to connect to the publisher. How do I connect the @Published in the Coordinator class to the MapKitView, so