After updating to Swift 4, the priority operator ~ no longer works with doubles and integers, since UILayoutPriority is a RawRepresentable now. This breaks many constraints defined using Cartography, and requires writing this unwieldy kind of constraint view.bottom == sv.bottom ~ LayoutPriority(rawValue: 900.0).
It would be great if func ~ accepted integers and doubles in order to work around this.
After updating to Swift 4, the priority operator
~
no longer works with doubles and integers, since UILayoutPriority is a RawRepresentable now. This breaks many constraints defined using Cartography, and requires writing this unwieldy kind of constraintview.bottom == sv.bottom ~ LayoutPriority(rawValue: 900.0)
.It would be great if
func ~
accepted integers and doubles in order to work around this.