How to change height and width of UIButton, if it's constraint? This is for you easy question. But I don't understand. This is part of code where I change size
button.frame = CGRect(x: button.frame.origin.x, y: button.frame.origin.y, width: 30.0, height: 30.0) button.widthAnchor.constraint(equalToConstant: 30.0).isActive = true button.heightAnchor.constraint(equalToConstant: 30.0).isActive = true
button.translatesAutoresizingMaskIntoConstraints = falsebefore adding constraints