@@ -44,7 +44,7 @@ public extension Swiftlyable {
4444 }
4545
4646 let constraints = layoutArray. flatMap { l -> [ NSLayoutConstraint ] in
47- let attributes : [ NSLayoutAttribute ]
47+ let attributes : [ NSLayoutConstraint . Attribute ]
4848 if let attrs = l. attributes {
4949 attributes = attrs
5050 } else if let attr = l. attribute {
@@ -53,7 +53,7 @@ public extension Swiftlyable {
5353 fatalError ( " You must define an attribute. " )
5454 }
5555
56- let otherAttributes : [ NSLayoutAttribute ]
56+ let otherAttributes : [ NSLayoutConstraint . Attribute ]
5757 if let otherAttrs = l. otherAttributes {
5858 otherAttributes = otherAttrs
5959 } else if let otherAttr = l. otherAttribute {
@@ -668,17 +668,17 @@ public struct Swiftly {
668668 return Swiftly ( . centerYWithinMargins)
669669 }
670670
671- let attribute : NSLayoutAttribute ?
672- let attributes : [ NSLayoutAttribute ] ?
673- var relatedBy : NSLayoutRelation ?
674- var otherAttribute : NSLayoutAttribute ?
675- var otherAttributes : [ NSLayoutAttribute ] ?
671+ let attribute : NSLayoutConstraint . Attribute ?
672+ let attributes : [ NSLayoutConstraint . Attribute ] ?
673+ var relatedBy : NSLayoutConstraint . Relation ?
674+ var otherAttribute : NSLayoutConstraint . Attribute ?
675+ var otherAttributes : [ NSLayoutConstraint . Attribute ] ?
676676 var multiplier : CGFloat
677677 var constant : CGFloat
678678 var toItem : Swiftlyable ?
679679 var priority : UILayoutPriority ?
680680
681- init ( _ a: NSLayoutAttribute ? = nil , attributes atts: [ NSLayoutAttribute ] ? = nil , relatedBy r: NSLayoutRelation ? = . equal, toItem ti: Swiftlyable ? = nil , otherAttribute oa: NSLayoutAttribute ? = nil , otherAttributes otherAtts: [ NSLayoutAttribute ] ? = nil , multiplier m: CGFloat = 1 , constant c: CGFloat = 0 ) {
681+ init ( _ a: NSLayoutConstraint . Attribute ? = nil , attributes atts: [ NSLayoutConstraint . Attribute ] ? = nil , relatedBy r: NSLayoutConstraint . Relation ? = . equal, toItem ti: Swiftlyable ? = nil , otherAttribute oa: NSLayoutConstraint . Attribute ? = nil , otherAttributes otherAtts: [ NSLayoutConstraint . Attribute ] ? = nil , multiplier m: CGFloat = 1 , constant c: CGFloat = 0 ) {
682682 attribute = a
683683 attributes = atts
684684 relatedBy = r
@@ -719,7 +719,7 @@ public func ==(left: Swiftly, right: CGFloat) -> Swiftly {
719719 if left. attribute != nil {
720720 result. otherAttribute = . notAnAttribute
721721 } else if let attrsCount = left. attributes? . count {
722- result. otherAttributes = [ NSLayoutAttribute ] ( repeating: . notAnAttribute, count: attrsCount)
722+ result. otherAttributes = [ NSLayoutConstraint . Attribute ] ( repeating: . notAnAttribute, count: attrsCount)
723723 }
724724
725725 return result
@@ -796,7 +796,7 @@ public func >=(left: Swiftly, right: CGFloat) -> Swiftly {
796796 if left. attribute != nil {
797797 result. otherAttribute = . notAnAttribute
798798 } else if let attrsCount = left. attributes? . count {
799- result. otherAttributes = [ NSLayoutAttribute ] ( repeating: . notAnAttribute, count: attrsCount)
799+ result. otherAttributes = [ NSLayoutConstraint . Attribute ] ( repeating: . notAnAttribute, count: attrsCount)
800800 }
801801
802802 result. relatedBy = . greaterThanOrEqual
@@ -847,7 +847,7 @@ public func <=(left: Swiftly, right: CGFloat) -> Swiftly {
847847 if left. attribute != nil {
848848 result. otherAttribute = . notAnAttribute
849849 } else if let attrsCount = left. attributes? . count {
850- result. otherAttributes = [ NSLayoutAttribute ] ( repeating: . notAnAttribute, count: attrsCount)
850+ result. otherAttributes = [ NSLayoutConstraint . Attribute ] ( repeating: . notAnAttribute, count: attrsCount)
851851 }
852852
853853 result. relatedBy = . lessThanOrEqual
0 commit comments