Skip to content

Commit de0868e

Browse files
author
Ruslan Dzhafarov
committed
update README.md
1 parent 44697d4 commit de0868e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,12 +1371,12 @@ The following methods are useful to adjust view's width and/or height to wrap al
13711371

13721372
**Methods:**
13731373

1374-
* **`wrapContent(viewFilter: ViewFilter = .none)`**
1375-
**`wrapContent(padding: CGFloat, viewFilter: ViewFilter = .none)`**
1376-
**`wrapContent(padding: UIEdgeInsets, viewFilter: ViewFilter = .none)`**
1374+
* **`wrapContent(viewFilter: ViewFilter = .all)`**
1375+
**`wrapContent(padding: CGFloat, viewFilter: ViewFilter = .all)`**
1376+
**`wrapContent(padding: UIEdgeInsets, viewFilter: ViewFilter = .all)`**
13771377
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.
1378-
* **`wrapContent(:WrapType, viewFilter: ViewFilter = .none)`** **`wrapContent(:WrapType, padding: UIEdgeInsets, viewFilter: ViewFilter = .none)`**
1379-
**`wrapContent(:WrapType, padding: CGFloat, viewFilter: ViewFilter = .none)`**
1378+
* **`wrapContent(:WrapType, viewFilter: ViewFilter = .all)`** **`wrapContent(:WrapType, padding: UIEdgeInsets, viewFilter: ViewFilter = .all)`**
1379+
**`wrapContent(:WrapType, padding: CGFloat, viewFilter: ViewFilter = .all)`**
13801380
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.
13811381

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

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

13931393
###### Usage examples:

0 commit comments

Comments
 (0)