Skip to content

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

Description

@yankaiyu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions