NSObject @objc dynamic class with SwiftUI

Hello,

I'm using PaintCode for UIGraphics which exports Swift files with an @objc dynamic public class func nested in a NSObject class. With older versions of Swift, could be implemented with the use of a UIKit view and the storyboard.

How could I do this with SwiftUI?

Thanks in advance.



What is the code doing? Is it drawing to a CGContext as you would in a UIView.draw method? If so, it sounds like you have to use UIViewRepresentable to create a UIView that you can then use in a SwiftUI View hierarchy.
NSObject @objc dynamic class with SwiftUI
 
 
Q