123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #if os(iOS) || os(tvOS)
- import UIKit
- #else
- import AppKit
- #endif
- public class LayoutConstraint : NSLayoutConstraint {
-
- public var label: String? {
- get {
- return self.identifier
- }
- set {
- self.identifier = newValue
- }
- }
-
- internal weak var constraint: Constraint? = nil
-
- }
- internal func ==(lhs: LayoutConstraint, rhs: LayoutConstraint) -> Bool {
- guard lhs.firstItem === rhs.firstItem &&
- lhs.secondItem === rhs.secondItem &&
- lhs.firstAttribute == rhs.firstAttribute &&
- lhs.secondAttribute == rhs.secondAttribute &&
- lhs.relation == rhs.relation &&
- lhs.priority == rhs.priority &&
- lhs.multiplier == rhs.multiplier else {
- return false
- }
- return true
- }
|