Swift Charts in ObjC project using bridging headers?

Is it possible to use Swift Charts in my ObjC project using bridging headers? The documentation names its Swift Charts but its seems they can only be used in SwiftUI projects.

  • I don't have a definite answer, but I don't see why you cannnot. I have tried reading a SwiftUI file that comes with Swift Charts, using UIHostingController. That's been successful. So try that if you like.

Add a Comment

Accepted Reply

As @Tomato mentioned, I'll be using** UIHostingController fo**r good!

Replies

As @Tomato mentioned, I'll be using** UIHostingController fo**r good!