Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
stleamist committed May 16, 2023
1 parent d9a76af commit 38bbd92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1367,17 +1367,17 @@ The property expose the `UIKit` value [`UIView.keyboardLayoutGuide`](https://dev
<a name="wrapContent"></a>
## WrapContent

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.
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.

**Methods:**

* **`wrapContent()`**
**`wrapContent(padding: CGFloat)`**
**`wrapContent(padding: UIEdgeInsets)`**
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 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.
* **`wrapContent(:WrapType)`**
**`wrapContent(:WrapType, padding: CGFloat)`** **`wrapContent(:WrapType, padding: UIEdgeInsets)`**
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.
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.

**Types:**

Expand Down
6 changes: 3 additions & 3 deletions Sources/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ public enum FitType {
}

@objc public enum WrapType: Int {
/// Adjust the view's width AND height to wrap all its subviews.
/// Adjust the view's width AND height to wrap all its subviews that are included in the size calculation.
case all
/// Adjust only the view's width to wrap all its subviews. The view's height won't be modified.
/// 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.
case horizontally
/// Adjust only the view's height to wrap all its subviews. The view's width won't be modified.
/// 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.
case vertically
}

Expand Down

0 comments on commit 38bbd92

Please sign in to comment.