This fixes the error “PrioritySpec.swift:22:28: Adjacent operators are in unordered precedence groups 'AssignmentPrecedence' and 'CarthographyPriorityPrecedence’” noted in issue https://github.com/robb/Cartography/issues/241
It also works around the bug “PrioritySpec.swift:22:48: Cannot assign value of type 'NSLayoutConstraint' to type 'NSLayoutConstraint!’” by switching out the priority Int for a Float.
This workaround is necessary as there’s a Swift compiler bug present.
This fixes the error “PrioritySpec.swift:22:28: Adjacent operators are in unordered precedence groups 'AssignmentPrecedence' and 'CarthographyPriorityPrecedence’” noted in issue https://github.com/robb/Cartography/issues/241
It also works around the bug “PrioritySpec.swift:22:48: Cannot assign value of type 'NSLayoutConstraint' to type 'NSLayoutConstraint!’” by switching out the priority Int for a Float.
This workaround is necessary as there’s a Swift compiler bug present.
References: https://bugs.swift.org/browse/SR-2823 https://openradar.appspot.com/28582961