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

Layout fill name redeclaration #76

Open
fortmarek opened this issue May 7, 2018 · 0 comments
Open

Layout fill name redeclaration #76

fortmarek opened this issue May 7, 2018 · 0 comments

Comments

@fortmarek
Copy link
Contributor

When using constraint field for layout:fillHorizontally or layout:fillVertically (for example layout:fillVertically = constraintName = super inset(40)) the generator fails with an error "Invalid redeclaration of constraintName". This is because when making constraints for the fill, the generator creates two constraints with the same name:

constraints.constraintName = make.left.equalTo(target).offset(40.0).constraint
constraints.constraintName = make.right.equalTo(target).offset(-40.0).constraint
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

Successfully merging a pull request may close this issue.

1 participant