SwiftAutoLayout icon indicating copy to clipboard operation
SwiftAutoLayout copied to clipboard

constant on LHS is ignored

Open aufflick opened this issue 8 years ago • 0 comments

let a = scrollView.right == view.right - 100
let b = scrollView.right + 100 == view.right

would appear to be equivalent, no compile or runtime error occurs, but in the second form, the constant is ignored:

a: <NSLayoutConstraint:0x7fcd02dee830 ETVTileHostingScrollView:0x7fcd0221b000.right == UIView:0x7fcd0141d840.right - 100>
b: <NSLayoutConstraint:0x7fcd02ce4be0 ETVTileHostingScrollView:0x7fcd0221b000.right == UIView:0x7fcd0141d840.right>

aufflick avatar Jul 06 '16 01:07 aufflick