SnapKit / Masonry

Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout
MIT License
18.06k stars 3.15k forks source link

When the parent view does not add a constraint or set a frame, the child view sets a constraint with a warning. #606

Open Young1006 opened 1 year ago

Young1006 commented 1 year ago

New Issue Checklist

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

Issue Info

Info Value
Platform e.g. ios
Platform Version e.g. 16.4
Masonry Version e.g. 1.1.0
Integration Method e.g. carthage/cocoapods/manually

Issue Description

截屏2023-05-22 15 36 35 截屏2023-05-22 15 36 12

When the parent view does not add a constraint or set a frame, the child view sets a constraint with a warning. I tried to adjust the constraint priority to remove the warning, but I am not sure if this is a good solution. Who can help me ?