@@ -77,18 +77,18 @@ extension UIView {
77
77
/// the space required for the specified `margin` between each subview. In other words, the `subviews` may each have
78
78
/// a size of zero along the horizontal axis, but their size may not be negative.
79
79
///
80
- /// - parameter subviews: The subviews to spread out, ordered from the leading edge to the trailing edge of the
81
- /// receiver.
82
80
/// - parameter margin: The space between each subview.
83
81
/// - parameter bounds: A custom area within which to layout the subviews in the receiver's coordinate space, or
84
82
/// `nil` to use the receiver's `bounds`. Defaults to `nil`.
85
83
/// - parameter orthogonalBehavior: Controls how the view should be sized and positioned along the vertical axis.
86
84
/// Defaults to filling the vertical space of the `bounds`.
85
+ /// - parameter subviews: The subviews to spread out, ordered from the leading edge to the trailing edge of the
86
+ /// receiver.
87
87
public func horizontallySpreadSubviews(
88
- @ViewArrayBuilder _ subviews: ( ) -> [ UIView ] ,
89
88
margin: CGFloat ,
90
89
inRect bounds: CGRect ? = nil ,
91
- orthogonalBehavior: VerticalSpreadingBehavior = . fill
90
+ orthogonalBehavior: VerticalSpreadingBehavior = . fill,
91
+ @ViewArrayBuilder _ subviews: ( ) -> [ UIView ]
92
92
) {
93
93
horizontallySpreadSubviews (
94
94
subviews ( ) ,
@@ -152,17 +152,17 @@ extension UIView {
152
152
/// the space required for the specified `margin` between each subview. In other words, the `subviews` may each have
153
153
/// a size of zero along the vertical axis, but their size may not be negative.
154
154
///
155
- /// - parameter subviews: The subviews to spread out, ordered from the top edge to the bottom edge of the receiver.
156
155
/// - parameter margin: The space between each subview.
157
156
/// - parameter bounds: A custom area within which to layout the subviews in the receiver's coordinate space, or
158
157
/// `nil` to use the receiver's `bounds`. Defaults to `nil`.
159
158
/// - parameter orthogonalBehavior: Controls how the view should be sized and positioned along the horizontal axis.
160
159
/// Defaults to filling the horizontal space of the `bounds`.
160
+ /// - parameter subviews: The subviews to spread out, ordered from the top edge to the bottom edge of the receiver.
161
161
public func verticallySpreadSubviews(
162
- @ViewArrayBuilder _ subviews: ( ) -> [ UIView ] ,
163
162
margin: CGFloat ,
164
163
inRect bounds: CGRect ? = nil ,
165
- orthogonalBehavior: HorizontalSpreadingBehavior = . fill
164
+ orthogonalBehavior: HorizontalSpreadingBehavior = . fill,
165
+ @ViewArrayBuilder _ subviews: ( ) -> [ UIView ]
166
166
) {
167
167
verticallySpreadSubviews (
168
168
subviews ( ) ,
0 commit comments