Closed gaetanzanella closed 3 years ago
How to fix?
It looks like touches are getting eaten by this view _TtGC7SwiftUI16PlatformViewHostGVS_42PlatformViewControllerRepresentableAdaptorV14DynamicOverlay38OverlayContainerRepresentableAdaptator__
. It looks like a view generated by SwiftUI.
I think this is a view that's automatically created because OverlayContainerRepresentableAdaptator
is UIViewControllerRepresentable
and it might be challenging to have it passthrough touch events. The only solution I can think of is creating a container view controller in UIKit that composes both the overlay and the background content (to avoid this issue) and wrap in a SwiftUI view using UIViewControllerRepresentable
.