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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions