UITextView changed sequence of views in iOS 18

UITextView changed the sequence of views and on the top UIView. As a result in the custom gesture class in "touchesBegan" method, this code brings me "let touchedView = touches.first?.view" type of view UIView but it must be my own custom class type. How can I get a tapped type of view? Help please override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) { super.touchesBegan(touches, with: event) let touchedView = touches.first?.view }

Any apple guru?

UITextView changed sequence of views in iOS 18
 
 
Q