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

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

yankaiyu 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
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. ⚠️

Fixed #594