Closed JohnCoates closed 8 years ago
adding higherThan: AssignmentPrecedence
to precedencegroup CarthographyPriorityPrecedence
fixes the first error.
Not sure what the best fix for the second & third errors are, but wrapping the priority in LayoutPriority()
makes it compile at least.
constraint = view.width == 200 ~ LayoutPriority(100)
Yeah, the implicit LayoutPriority
was something we couldn't figure out when porting to Swift 3 - I'd love for you to dig in here and see if you can figure that one out?
Okay, sure I'll have a go at it
I believe this is a bug with the compiler. I've filed a Swift bug report and a radar about this issue. The more radars that get filed, the more traction the bug gets, so I recommend filing one also.
Perfect! Shipped as 1.0.1 - thanks!
The priority example in the Readme fails to compile on Swift 3.0
Errors: