3

I found this question on stackoverflow with this source code as possible solution.

How can I use a SwiftUI view instead of a UIImageView as underlayView?

I tried to replace the UIImageView with a UIView and converted my SwiftUI view with a UIHostingController to a UIView but this UIView was then invisible in the PKCanvasView.

halloduda
  • 31
  • 2
  • if the solution is a `UIView` use a `UIViewRepresentable` if it is a `UIViewController` use a `UIViewControllerRepresentable` – lorem ipsum Feb 12 '23 at 14:04

0 Answers0