You might need to create a custom UIGestureRecognizer if you don't already have one in your UIViewRepresentable, but if you do, just add the following method to it:
swift
override func canBePrevented(by preventingGestureRecognizer: UIGestureRecognizer) - Bool {
false
}