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
+47-1Lines changed: 47 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ 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 methods `wrapConten(...)` that adjust the view's width & height to wrap all its subviews. See [wrapContent](#wrapCcontent) for more information.
41
+
40
42
*:star: PinLayout now support macOS. See [macOS Support](#macos_support) for more information.
41
43
42
44
*:star: PinLayout expose the `safeAreaInsets` through [`UIView.pin.safeArea`](#safeAreaInsets), this property support not only iOS 11, but is also backward compatible for earlier iOS releases (7/8/9/10). See [safeAreaInsets support](#safeAreaInsets) for more information.
@@ -61,6 +63,7 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
61
63
*[Aspect Ratio](#aspect_ratio)
62
64
*[Margins](#margins)
63
65
*[safeAreaInsets support](#safeAreaInsets)
66
+
*[WrapContent](#wrapCcontent)
64
67
*[justify, align](#justify_align)
65
68
*[UIView's transforms](#uiview_transform)
66
69
*[Warnings](#warnings)
@@ -1134,8 +1137,51 @@ This example runs perfectly on a iPhone X (iOS 11), but it also runs on any devi
1134
1137
1135
1138
<br/>
1136
1139
1140
+
<aname="wrapCcontent"></a>
1141
+
## WrapContent
1137
1142
1138
-
<aname="aspect_ratio"></a>
1143
+
The following methods are useful to adjust the view's width and/or height to wrap all its subviews. These method also adjust subviews position to create a tight wrap.
0 commit comments