Skip to content

Layout fill name redeclaration #76

Description

@fortmarek

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions