Skip to content

Active flag is not applied when creating constraints #65

@IainS1986

Description

@IainS1986

It appears the Active flag doesn't get set inside the CreateConstraint() method inside FluentLayout.

This means, if you create 2 or more competing constraints, set the one you want to active, then call UIView.AddConstraints they will all get set to Active = true and you'll get a bunch of errors about constraints not being satisfied.

You then need to set Active flags after setting UIView.AddConstraints.

Ideally, CreateConstraint() should set the active flag so we can add them in UIVew.AddConstraints and not get any issues or have the state reset.

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