I would like to set a buttons size to superview borders on smaller devices like the iPhone, but never let it get larger than 200 on devices like the iPad (my superview is a view that's part of a horizontal stack view with two views).
buttonControl.snp.makeConstraints { (make) in
make.left.equalTo(box).priority(.low)
make.width.lessThanOrEqualTo(200).priority(.high)
make.height.equalTo(buttonControl.snp.width)
make.center.equalTo(box).priority(.high)
}
I would've expected the button to increase in size up to 200.
Instead, its maximum size is 64, the Snapkit preset. Thank you for any help you can provide!