I have an issue with the button click events on an old app. Everything works OK for iOS versions < 13, but on iOS 13 the button clicks are not working.
This is the code that generates the buttons:
override func layoutSubviews() {
super.layoutSubviews()
var offsetY = CGFloat(0)
for view in authenticationViews {
view.button.frame = CGRect(x: 0, y: offsetY, width: frame.size.width, height: buttonHeight)
offsetY += buttonsDistance + buttonHeight
addSubview(view.button)
}
height = offsetY
}
I think there might be an issue with the constraints, but I am new to iOS and I don't know what to uderstand from this error and how should be fixed:
Will attempt to recover by breaking constraint (null) ((null), (null))