@@ -28,25 +28,21 @@ extension PinLayoutImpl {
2828 //
2929 // above(of ...)
3030 //
31- @discardableResult
3231 func above( of relativeView: PView ) -> PinLayout {
3332 func context( ) -> String { return " above(of: \( relativeView) ) " }
3433 return above ( relativeViews: [ relativeView] , aligned: nil , context: context)
3534 }
36-
37- @discardableResult
35+
3836 func above( of relativeViews: [ PView ] ) -> PinLayout {
3937 func context( ) -> String { return " above(of: \( relativeViews) ) " }
4038 return above ( relativeViews: relativeViews, aligned: nil , context: context)
4139 }
42-
43- @discardableResult
40+
4441 func above( of relativeView: PView , aligned: HorizontalAlign ) -> PinLayout {
4542 func context( ) -> String { return " above(of: \( relativeView) , aligned: \( aligned) ) " }
4643 return above ( relativeViews: [ relativeView] , aligned: aligned, context: context)
4744 }
48-
49- @discardableResult
45+
5046 func above( of relativeViews: [ PView ] , aligned: HorizontalAlign ) -> PinLayout {
5147 func context( ) -> String { return " above(of: \( relativeViews) , aligned: \( aligned) ) " }
5248 return above ( relativeViews: relativeViews, aligned: aligned, context: context)
@@ -55,25 +51,21 @@ extension PinLayoutImpl {
5551 //
5652 // below(of ...)
5753 //
58- @discardableResult
5954 func below( of relativeView: PView ) -> PinLayout {
6055 func context( ) -> String { return " below(of: \( relativeView) ) " }
6156 return below ( relativeViews: [ relativeView] , aligned: nil , context: context)
6257 }
63-
64- @discardableResult
58+
6559 func below( of relativeViews: [ PView ] ) -> PinLayout {
6660 func context( ) -> String { return " below(of: \( relativeViews) ) " }
6761 return below ( relativeViews: relativeViews, aligned: nil , context: context)
6862 }
69-
70- @discardableResult
63+
7164 func below( of relativeView: PView , aligned: HorizontalAlign ) -> PinLayout {
7265 func context( ) -> String { return " below(of: \( relativeView) , aligned: \( aligned) ) " }
7366 return below ( relativeViews: [ relativeView] , aligned: aligned, context: context)
7467 }
75-
76- @discardableResult
68+
7769 func below( of relativeViews: [ PView ] , aligned: HorizontalAlign ) -> PinLayout {
7870 func context( ) -> String { return " below(of: \( relativeViews) , aligned: \( aligned) ) " }
7971 return below ( relativeViews: relativeViews, aligned: aligned, context: context)
@@ -82,25 +74,21 @@ extension PinLayoutImpl {
8274 //
8375 // left(of ...)
8476 //
85- @discardableResult
8677 func left( of relativeView: PView ) -> PinLayout {
8778 func context( ) -> String { return " left(of: \( relativeView) ) " }
8879 return left ( relativeViews: [ relativeView] , aligned: nil , context: context)
8980 }
90-
91- @discardableResult
81+
9282 func left( of relativeViews: [ PView ] ) -> PinLayout {
9383 func context( ) -> String { return " left(of: \( relativeViews) ) " }
9484 return left ( relativeViews: relativeViews, aligned: nil , context: context)
9585 }
96-
97- @discardableResult
86+
9887 func left( of relativeView: PView , aligned: VerticalAlign ) -> PinLayout {
9988 func context( ) -> String { return " left(of: \( relativeView) , aligned: \( aligned) ) " }
10089 return left ( relativeViews: [ relativeView] , aligned: aligned, context: context)
10190 }
102-
103- @discardableResult
91+
10492 func left( of relativeViews: [ PView ] , aligned: VerticalAlign ) -> PinLayout {
10593 func context( ) -> String { return " left(of: \( relativeViews) , aligned: \( aligned) ) " }
10694 return left ( relativeViews: relativeViews, aligned: aligned, context: context)
@@ -109,31 +97,26 @@ extension PinLayoutImpl {
10997 //
11098 // right(of ...)
11199 //
112- @discardableResult
113100 func right( of relativeView: PView ) -> PinLayout {
114101 func context( ) -> String { return " right(of: \( relativeView) ) " }
115102 return right ( relativeViews: [ relativeView] , aligned: nil , context: context)
116103 }
117-
118- @discardableResult
104+
119105 func right( of relativeViews: [ PView ] ) -> PinLayout {
120106 func context( ) -> String { return " right(of: \( relativeViews) ) " }
121107 return right ( relativeViews: relativeViews, aligned: nil , context: context)
122108 }
123109
124- @discardableResult
125110 func right( of relativeView: PView , aligned: VerticalAlign ) -> PinLayout {
126111 func context( ) -> String { return " right(of: \( relativeView) , aligned: \( aligned) ) " }
127112 return right ( relativeViews: [ relativeView] , aligned: aligned, context: context)
128113 }
129-
130- @discardableResult
114+
131115 func right( of relativeViews: [ PView ] , aligned: VerticalAlign ) -> PinLayout {
132116 func context( ) -> String { return " right(of: \( relativeViews) , aligned: \( aligned) ) " }
133117 return right ( relativeViews: relativeViews, aligned: aligned, context: context)
134118 }
135-
136- @discardableResult
119+
137120 func before( of relativeView: PView ) -> PinLayout {
138121 func context( ) -> String { return " before(of: \( relativeView) ) " }
139122 if isLTR ( ) {
@@ -142,8 +125,7 @@ extension PinLayoutImpl {
142125 return right ( relativeViews: [ relativeView] , aligned: nil , context: context)
143126 }
144127 }
145-
146- @discardableResult
128+
147129 func before( of relativeViews: [ PView ] ) -> PinLayout {
148130 func context( ) -> String { return " before(of: \( relativeViews) ) " }
149131 if isLTR ( ) {
@@ -152,8 +134,7 @@ extension PinLayoutImpl {
152134 return right ( relativeViews: relativeViews, aligned: nil , context: context)
153135 }
154136 }
155-
156- @discardableResult
137+
157138 func before( of relativeView: PView , aligned: VerticalAlign ) -> PinLayout {
158139 func context( ) -> String { return " before(of: \( relativeView) , aligned: \( aligned) ) " }
159140 if isLTR ( ) {
@@ -162,8 +143,7 @@ extension PinLayoutImpl {
162143 return right ( relativeViews: [ relativeView] , aligned: aligned, context: context)
163144 }
164145 }
165-
166- @discardableResult
146+
167147 func before( of relativeViews: [ PView ] , aligned: VerticalAlign ) -> PinLayout {
168148 func context( ) -> String { return " before(of: \( relativeViews) , aligned: \( aligned) ) " }
169149 if isLTR ( ) {
@@ -172,8 +152,7 @@ extension PinLayoutImpl {
172152 return right ( relativeViews: relativeViews, aligned: aligned, context: context)
173153 }
174154 }
175-
176- @discardableResult
155+
177156 func after( of relativeView: PView ) -> PinLayout {
178157 func context( ) -> String { return " after(of: \( relativeView) ) " }
179158 if isLTR ( ) {
@@ -182,8 +161,7 @@ extension PinLayoutImpl {
182161 return left ( relativeViews: [ relativeView] , aligned: nil , context: context)
183162 }
184163 }
185-
186- @discardableResult
164+
187165 func after( of relativeViews: [ PView ] ) -> PinLayout {
188166 func context( ) -> String { return " after(of: \( relativeViews) ) " }
189167 if isLTR ( ) {
@@ -192,8 +170,7 @@ extension PinLayoutImpl {
192170 return left ( relativeViews: relativeViews, aligned: nil , context: context)
193171 }
194172 }
195-
196- @discardableResult
173+
197174 func after( of relativeView: PView , aligned: VerticalAlign ) -> PinLayout {
198175 func context( ) -> String { return " after(of: \( relativeView) ) " }
199176 if isLTR ( ) {
@@ -202,8 +179,7 @@ extension PinLayoutImpl {
202179 return left ( relativeViews: [ relativeView] , aligned: aligned, context: context)
203180 }
204181 }
205-
206- @discardableResult
182+
207183 func after( of relativeViews: [ PView ] , aligned: VerticalAlign ) -> PinLayout {
208184 func context( ) -> String { return " after(of: \( relativeViews) , aligned: \( aligned) ) " }
209185 if isLTR ( ) {
@@ -216,7 +192,6 @@ extension PinLayoutImpl {
216192
217193// MARK: fileprivate
218194extension PinLayoutImpl {
219- @discardableResult
220195 fileprivate func above( relativeViews: [ PView ] , aligned: HorizontalAlign ? , context: Context ) -> PinLayout {
221196 guard let relativeViews = validateRelativeViews ( relativeViews, context: context) else { return self }
222197
@@ -240,7 +215,6 @@ extension PinLayoutImpl {
240215 return self
241216 }
242217
243- @discardableResult
244218 fileprivate func below( relativeViews: [ PView ] , aligned: HorizontalAlign ? , context: Context ) -> PinLayout {
245219 guard let relativeViews = validateRelativeViews ( relativeViews, context: context) else { return self }
246220
@@ -391,4 +365,3 @@ extension PinLayoutImpl {
391365 return relativeViews
392366 }
393367}
394-
0 commit comments