in some phones with iOS 15 update(15.0.1, 15.0.2, 15.1), button click is not responding at all.
In which versions of iOS did you get it working ?
When you post code, please use the code formatter tool.
var signUpButton : UIButton = {
let signInButton = UIButton()
signInButton.setTitle(LocalizationManager.shared.localString(for: LocalizableStrings.signUpButton), for: .normal)
signInButton.setTitleColor(.white, for: .normal)
signInButton.setTitleColor(Colors.initoDark.withAlphaComponent(0.2), for: .highlighted)
signInButton.backgroundColor = Colors.initoGreen
signInButton.titleLabel?.font = UIFont.montserratSemiBold(15)
signInButton.layer.cornerRadius = 26
signInButton.layer.borderWidth = 2
signInButton.layer.borderColor = Colors.initoGreen.cgColor
signInButton.addTarget(self, action: #selector(handleSignupButtonTapped), for: .touchUpInside)
return signInButton }()
Do you see button on screen ? I understand yes if you can tap it.
Could you show the selector func handleSignupButtonTapped ?
Please also show what LocalizableStrings and LocalizationManager are.
Is LocalizationManager the class in which signUpButton is declared ? If so that would mean that signUpButton calls itself (LocalizableStrings.signUpButton) during its init ?
So please, provide more context.