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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why removeConstraints wouldn't call translatesAutoresizingMaskIntoConstraints = true #787

Open
3 tasks done
Saafo opened this issue Nov 28, 2023 · 0 comments
Open
3 tasks done

Comments

@Saafo
Copy link

Saafo commented Nov 28, 2023

New Issue Checklist

馃毇 If this template is not filled out your issue will be closed with no comment. 馃毇

  • I have looked at the Documentation
  • I have read the F.A.Q.
  • I have filled out this issue template.

Issue Info

Info Value
Platform ios
Platform Version e.g. 17.0
SnapKit Version e.g. 5.6.0
Integration Method e.g. cocoapods

Issue Description

When we call (re)makeConstraints, SnapKit would automatically set translatesAutoresizingMaskIntoConstraints = false. However, when call removeConstraints, this value wouldn't be reset (to true). Is this behavior by design?

The problem is that I have a view, it is first layout by SnapKit, then layout by frames. After I removeConstraints on the view, the frame layout behaved odd. I spent 2 hours to found that I have to manully set translatesAutoresizingMaskIntoConstraints back to true.

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