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

Issue when converting NSLayoutConstraint to autoConstrainAttribute in PureLayout #192

Open
wwilfred opened this issue Jun 30, 2017 · 0 comments
Labels

Comments

@wwilfred
Copy link

I would like to code with PureLayout library with the following statement.
NSLayoutConstraint(item: contentView, attribute: .bottom, relatedBy: .greaterThanOrEqual, toItem: profileView, attribute: .bottom, multiplier: 1, constant: borderSize).isActive = true

This is what I code using the PureLayout function
contentView.autoConstrainAttribute(.bottom, to: .bottom, of: profileView, withOffset: borderSize, relation: .greaterThanOrEqual)

However, the UI display differently. Why? Am I do something incorrect?

PureLayout version: 3.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants