ASAuthorizationAppleIDButton not responding to touch

I've experienced strange bug in Latest Xcode 11.0 My code:

let button = ASAuthorizationAppleIDButton(type: .default, style: .black) 
button.translatesAutoresizingMaskIntoConstraints = false 
button.cornerRadius = 10 
button.addTarget(self, action: #selector(appleSignInButtonSelected(_:)), for: .touchUpInside)

Selector never called, but if I change event to touchDown, everything works.

Maybe you have UITapGestureRecognizer attached to root view of your ViewController with cancelsTouchesInView=true

This can prevent touches on ASAuthorizationAppleIDButton

Another solution works very well, just change .touchUpInside to .touchDown

ASAuthorizationAppleIDButton not responding to touch
 
 
Q