I\'d like to set a constraint to give a UIButton a fixed (constant) width programmatically. I know I can do this with constraintsWithVisualFormat, but I\'ve been using constrain
Rather than looking for an explicit height (28), a better idea would be to look for a height constraint…
height
loginButton.constraints.first(where: { $0.firstAttribute == .height })?.constant = 40