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

Active flag is not applied when creating constraints #65

Open
IainS1986 opened this issue Dec 8, 2020 · 0 comments
Open

Active flag is not applied when creating constraints #65

IainS1986 opened this issue Dec 8, 2020 · 0 comments

Comments

@IainS1986
Copy link

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.

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

No branches or pull requests

1 participant