General Question using swiftCharts?

I have a macOS app which was built using Xcode 13 and storyboard. I want to add swiftCharts to the app. Can I add swiftCharts code to this app and not have to migrate the storyboard UI to swiftUI? How can this be done?

Thanks

Answered by harryworld in 719018022

You need to first use Xcode 14 beta, then embed the Swift Charts (which is SwiftUI view) to your code using one of the bridging tools below https://developer.apple.com/documentation/swiftui/swiftui-views-displayed-by-other-ui-frameworks

Accepted Answer

You need to first use Xcode 14 beta, then embed the Swift Charts (which is SwiftUI view) to your code using one of the bridging tools below https://developer.apple.com/documentation/swiftui/swiftui-views-displayed-by-other-ui-frameworks

Thanks I will give this a try!

General Question using swiftCharts?
 
 
Q