Possible SwiftChart bug with overflowResolution

I've been trying to reproduce the example used in the WWDC 23 Presentation "Explore Pit Charts and Interactivity in SwiftCharts" where a popover annotation is set on top of the chart and vertical; RuleMark. However when doing so the annotation doesn't appear at all.

I worked around that issue by setting: y: .fit(to: .chart) in the init of the overflowResolution, like:

 .annotation(position: .top, spacing: 0, overflowResolution: .init(x: .fit(to: .chart), y: .fit(to: .chart)))

Probably a SwiftUI bug given this API is only a few months old. If anyone has been able to reproduce that example let me know!

Replies

Hey @Geneva0 , thanks for posting! Looks like a bug to me :) please file a bug report at https://feedbackassistant.apple.com and post the FB number here. Thanks for adding that workaround as well!

  • No problem, I field a report with ID: FB13377744.

  • @Geneva0 , if you can upload a zip file with a reproduction of the bug, that'd be great! You can do that in your feedback report at that same link as above

Add a Comment