can not call selector and gesture delegate iOS 13.2

my code works in iOS 12 last version but after iOS 13 this code can't call the selector

I used **UIGestureRecognizerDelegate** for iOS 13



here is my code





   let panGest = UIPanGestureRecognizer(target: self, action: #selector(self.handleTap(_:)))
    panGest.delegate = self
    txtVw.addGestureRecognizer(panGest)


here is my let txtVw = subVws as! UITextView ,

txtVw = subVws as! UITextView

this function with sef.view its work but i do'nt have self.view i have one subview
I I used one code like this :

  let panGest = UIPanGestureRecognizer(target: self, action: #selector(self.handleTap(_:)))
   self.view.addGestureRecognizer(panGest)

its work with self.view but for subview how can i call ? is not work self.handleTap and its not call gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)



gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)

As you post small piexecs of code, it is very hard to understand what you really do and where the problem is.


What is subVws ? How is it defined ?

txtVw = subVws as! UITextView


Does your code compile ?


Please post the complete code for the class.

And confirm that the exact same code works for iOS 12 but not iOS 13.

let txtVw = subVws as! UITextView

Claude31 thiscode work well in ios 12

You don't answer my questions.


What is subVws ? How is it defined ?

I am asking for subWvs, not txtVw


And really, it would be helpful to see the complete code of the viewController.

can not call selector and gesture delegate iOS 13.2
 
 
Q