@@ -56,7 +56,7 @@ class PinLayoutImpl: PinLayout {
5656 internal var justify : HorizontalAlign ?
5757 internal var align : VerticalAlign ?
5858
59- internal var _marginTop : CGFloat { return marginTop ?? 0 }
59+ internal var _marginTop : CGFloat { return marginTop ?? 0 }
6060 internal var _marginLeft : CGFloat { return marginLeft ?? 0 }
6161 internal var _marginBottom : CGFloat { return marginBottom ?? 0 }
6262 internal var _marginRight : CGFloat { return marginRight ?? 0 }
@@ -300,7 +300,6 @@ class PinLayoutImpl: PinLayout {
300300 }
301301 return self
302302 }
303-
304303
305304 //
306305 // topLeft, topCenter, topRight,
@@ -694,12 +693,12 @@ class PinLayoutImpl: PinLayout {
694693
695694 @discardableResult
696695 func aspectRatio( _ ratio: CGFloat ) -> PinLayout {
697- return setAspectRatio ( ratio, context: { " aspectRatio( \( ratio) ) " } )
696+ return setAspectRatio ( ratio, context: { " aspectRatio( \( ratio) ) " } )
698697 }
699698
700699 @discardableResult
701700 func aspectRatio( of view: UIView ) -> PinLayout {
702- return setAspectRatio ( view. frame. width / view. frame. height, context: { " aspectRatio(of: \( viewDescription ( view) ) ) " } )
701+ return setAspectRatio ( view. frame. width / view. frame. height, context: { " aspectRatio(of: \( viewDescription ( view) ) ) " } )
703702 }
704703
705704 @discardableResult
@@ -868,7 +867,7 @@ extension PinLayoutImpl {
868867 if shouldSizeToFit {
869868 warnConflict ( context, [ " fitSize " : shouldSizeToFit] )
870869 } else if ratio <= 0 {
871- warnWontBeApplied ( " the aspectRatio ( \( ratio) ) must be greater than zero. " , context) ;
870+ warnWontBeApplied ( " the aspectRatio ( \( ratio) ) must be greater than zero. " , context)
872871 } else {
873872 _aspectRatio = ratio
874873 }
@@ -998,7 +997,7 @@ extension PinLayoutImpl {
998997 return warn ( " pinEdges() won't be applied, top, left, bottom and right coordinates are already set. " )
999998 }
1000999
1001- if let width = applyMinMax ( toWidth: width) , _left == nil || _right == nil {
1000+ if let width = applyMinMax ( toWidth: width) , _left == nil || _right == nil {
10021001 if let left = _left {
10031002 // convert the width into a right
10041003 assert ( self . _right == nil )
@@ -1047,7 +1046,7 @@ extension PinLayoutImpl {
10471046 var width = computeWidth ( )
10481047 var height = computeHeight ( )
10491048
1050- if ( width != nil || height != nil ) {
1049+ if width != nil || height != nil {
10511050 if shouldSizeToFit {
10521051 // Apply min/max width/height before calling sizeThatFits() ... and reapply them after.
10531052 width = applyMinMax ( toWidth: width)
@@ -1126,7 +1125,7 @@ extension PinLayoutImpl {
11261125 }
11271126
11281127 // Handle maxWidth
1129- if let maxWidth = maxWidth, maxWidth < ( result ?? CGFloat . greatestFiniteMagnitude) {
1128+ if let maxWidth = maxWidth, maxWidth < ( result ?? CGFloat . greatestFiniteMagnitude) {
11301129 result = maxWidth
11311130 }
11321131
@@ -1192,7 +1191,7 @@ extension PinLayoutImpl {
11921191 }
11931192
11941193 // Handle maxHeight
1195- if let maxHeight = maxHeight, maxHeight < ( result ?? CGFloat . greatestFiniteMagnitude) {
1194+ if let maxHeight = maxHeight, maxHeight < ( result ?? CGFloat . greatestFiniteMagnitude) {
11961195 result = maxHeight
11971196 }
11981197
0 commit comments