SnapKit / Masonry

Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS12 mas_remakeConstraints does not remove all installed constraints

gx921016 opened this issue Β· comments

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 filled out this issue template.

Issue Info

Info Value
Platform e.g. ios/osx/tvos
Platform Version e.g. 8.0
Masonry Version e.g. 1.0
Integration Method e.g. carthage/cocoapods/manually

[self.tf_text mas_remakeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(weakSelf).with.offset(115);
make.centerY.equalTo(weakSelf);
make.right.equalTo(weakSelf).with.offset(-15);
make.top.and.bottom.equalTo(weakSelf);
}];

[self.tf_text mas_remakeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(weakSelf).with.offset(115);
make.centerY.equalTo(weakSelf);
make.right.equalTo(weakSelf).with.offset(-45);
make.top.and.bottom.equalTo(weakSelf);
}];