Ios swift – Extend swift class that already conforms some protocol
I have some class (class A: UIView) that conforms protocol UIGestureRecognizerDelegate from third-party library. I need to extend this class by adding some optional UIGestureRecognizerDelegate method, for example gestureRecognizer:shouldRequireFailureOfGestureRecognizer:. How to do that? I have tried writing an extension for…