Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update README.md
  • Loading branch information
Ruslan Dzhafarov committed Apr 5, 2024
commit de0868e562adbd009ef65a84db2ac0e544d6701f
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1371,12 +1371,12 @@ The following methods are useful to adjust view's width and/or height to wrap al

**Methods:**

* **`wrapContent(viewFilter: ViewFilter = .none)`**
**`wrapContent(padding: CGFloat, viewFilter: ViewFilter = .none)`**
**`wrapContent(padding: UIEdgeInsets, viewFilter: ViewFilter = .none)`**
* **`wrapContent(viewFilter: ViewFilter = .all)`**
**`wrapContent(padding: CGFloat, viewFilter: ViewFilter = .all)`**
**`wrapContent(padding: UIEdgeInsets, viewFilter: ViewFilter = .all)`**
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. Additionally, it's possible to specify whether to include all views or only visible ones.
* **`wrapContent(:WrapType, viewFilter: ViewFilter = .none)`** **`wrapContent(:WrapType, padding: UIEdgeInsets, viewFilter: ViewFilter = .none)`**
**`wrapContent(:WrapType, padding: CGFloat, viewFilter: ViewFilter = .none)`**
* **`wrapContent(:WrapType, viewFilter: ViewFilter = .all)`** **`wrapContent(:WrapType, padding: UIEdgeInsets, viewFilter: ViewFilter = .all)`**
**`wrapContent(:WrapType, padding: CGFloat, viewFilter: ViewFilter = .all)`**
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. Additionally, it's possible to specify whether to include all views or only visible ones.

**Types:**
Expand All @@ -1387,7 +1387,7 @@ Adjust the view's width AND/OR height to wrap all its subviews. Accept a WrapTyp
* `.all`: Adjust the view's width AND height and update subviews position. This is the default WrapType parameter value `wrapContent()` methods.

* **`ViewFilter`** values:
* `.none`: No filter, use all views
* `.all`: Consider all views
* `.visibleOnly`: Consider only visible views (isHidden is false and alpha is > 0)

###### Usage examples:
Expand Down