Ios swift – Custom UIControl does not work with UITapGestureRecognizer
When the UITapGestureRecognizer is not added to the view, both the UIButton and CustomControl will receive the .touchUpInside event. However, when the UITapGestureRecognizer is added to the view, only the UIButton can receive the .touchUpInside event. How can a custom…