Values with priority in KeepLayout
Every numeric value used in KeepLayout need to have associated priority. This pair is then passed to the underlying NSLayoutConstraint
of Auto Layout.
The KeepValue
type was an ordinary struct
with .value
and .priority
, so it had to be created using one of the provided functions:
view.keepWidth.equal = KeepRequired(100); // value 100, priority 1000