Masonry icon indicating copy to clipboard operation
Masonry copied to clipboard

Duplicate keys for NSLayoutAttributeBaseline and NSLayoutAttributeLastBaseline in NSLayoutConstraint+MASDebugAdditions.m

Open yankaiyu opened this issue 5 years ago • 1 comments

New Issue Checklist

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

  • [X] I have looked at the Documentation
  • [X] I have filled out this issue template.

Issue Info

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

Issue Description

There are duplicate keys in NSLayoutConstraint+MASDebugAdditions.m.

One at

NSLayoutConstraint+MASDebugAdditions.m:49:13: @(NSLayoutAttributeLastBaseline) : @"lastBaseline"

Another one at

NSLayoutConstraint+MASDebugAdditions.m:45:13: @(NSLayoutAttributeBaseline) : @"baseline"

The values of NSLayoutAttributeBaseline and NSLayoutAttributeLastBaseline are the same in the latest SDK (I tested in iOS 13.5). There should be at most one of them used in the dictionary.

⚠️ Replace this with the description of your issue. ⚠️

yankaiyu avatar Jun 25 '20 18:06 yankaiyu

Fixed https://github.com/SnapKit/Masonry/pull/594

cntrump avatar May 31 '21 06:05 cntrump