You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
37
37
* Swift 3.2+ / Swift 4.0 / Objective-C
38
38
39
39
### Recent features
40
-
*:star: Add `wrapContent()` methods that adjust view's width & height to wrap all its subviews. See [wrapContent](#wrapContent) for more information.
40
+
*:star: Add `wrapContent()` methods that adjust view's width and height to wrap all its subviews. See [wrapContent](#wrapContent) for more information.
41
41
42
42
*:star: PinLayout now support macOS. See [macOS Support](#macos_support) for more information.
43
43
@@ -1147,10 +1147,17 @@ The following methods are useful to adjust view's width and/or height to wrap al
1147
1147
***`wrapContent()`**
1148
1148
**`wrapContent(padding: CGFloat)`**
1149
1149
**`wrapContent(padding: UIEdgeInsets)`**
1150
-
Adjust the view's width and height to wrap all its subviews. The method also adjusts subviews position to create a tight wrap. It is also possible to specify an optional padding around all subviews.
1150
+
Adjust the view's width and height to wrap all its subviews. The method also adjusts subviews's position to create a tight wrap. It is also possible to specify an optional padding around all subviews.
Adjust the view's width AND/OR height to wrap all its subviews. WrapType values are `.horizontally`/`.vertically`/`.all` It is also possible to specify an optional padding around all subviews.
Adjust the view's width AND/OR height to wrap all its subviews. Accept a WrapType parameter to define the wrapping type. It is also possible to specify an optional padding around all subviews.
1154
+
1155
+
**Types:**
1156
+
1157
+
***`WrapType`** values:
1158
+
* `.horizontally`: Adjust the view's width and update subviews's horizontal position.
1159
+
* `.vertically`: Adjust only the view's height and update subviews's vertical position.
1160
+
* `.all`: Adjust the view's width AND height and update subviews position. This is the default WrapType parameter value `wrapContent()` methods.
0 commit comments