Skip to content

Commit 38bbd92

Browse files
committed
Update documentation
1 parent d9a76af commit 38bbd92

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1367,17 +1367,17 @@ The property expose the `UIKit` value [`UIView.keyboardLayoutGuide`](https://dev
13671367
<a name="wrapContent"></a>
13681368
## WrapContent
13691369

1370-
The following methods are useful to adjust view's width and/or height to wrap all its subviews. These methods also adjust subviews position to create a tight wrap.
1370+
The following methods are useful to adjust view's width and/or height to wrap all its subviews that are included in the layout. These methods also adjust subviews position to create a tight wrap.
13711371

13721372
**Methods:**
13731373

13741374
* **`wrapContent()`**
13751375
**`wrapContent(padding: CGFloat)`**
13761376
**`wrapContent(padding: UIEdgeInsets)`**
1377-
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.
1377+
Adjust the view's width and height to wrap all its subviews that are included in the layout. The method also adjusts subviews's position to create a tight wrap. It is also possible to specify an optional padding around all subviews.
13781378
* **`wrapContent(:WrapType)`**
13791379
**`wrapContent(:WrapType, padding: CGFloat)`** **`wrapContent(:WrapType, padding: UIEdgeInsets)`**
1380-
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.
1380+
Adjust the view's width AND/OR height to wrap all its subviews that are included in the layout. Accept a WrapType parameter to define the wrapping type. It is also possible to specify an optional padding around all subviews.
13811381

13821382
**Types:**
13831383

Sources/Types.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ public enum FitType {
186186
}
187187

188188
@objc public enum WrapType: Int {
189-
/// Adjust the view's width AND height to wrap all its subviews.
189+
/// Adjust the view's width AND height to wrap all its subviews that are included in the size calculation.
190190
case all
191-
/// Adjust only the view's width to wrap all its subviews. The view's height won't be modified.
191+
/// Adjust only the view's width to wrap all its subviews that are included in the size calculation. The view's height won't be modified.
192192
case horizontally
193-
/// Adjust only the view's height to wrap all its subviews. The view's width won't be modified.
193+
/// Adjust only the view's height to wrap all its subviews that are included in the size calculation. The view's width won't be modified.
194194
case vertically
195195
}
196196

0 commit comments

Comments
 (0)