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

"addConstraint" is obsolete #322

Open
Gargo opened this issue Aug 9, 2023 · 0 comments
Open

"addConstraint" is obsolete #322

Gargo opened this issue Aug 9, 2023 · 0 comments

Comments

@Gargo
Copy link

Gargo commented Aug 9, 2023

According to documentation:

When developing for iOS 8.0 or later, set the constraint’s [isActive](doc://com.apple.documentation/documentation/uikit/nslayoutconstraint/1527000-isactive?language=swift) property to [true](https://developer.apple.com/documentation/swift/true) instead of calling the addConstraint(_:) method directly. The isActive property automatically adds and removes the constraint from the correct view.
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