Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constant on LHS is ignored #17

Open
aufflick opened this issue Jul 6, 2016 · 0 comments
Open

constant on LHS is ignored #17

aufflick opened this issue Jul 6, 2016 · 0 comments

Comments

@aufflick
Copy link

aufflick commented Jul 6, 2016

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant