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
### Add `wrapContent()` methods that adjust view's width & height to wrap all its subviews
14
+
15
+
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.
16
+
17
+
**Methods:**
18
+
19
+
***`wrapContent()`**
20
+
**`wrapContent(padding: CGFloat)`**
21
+
**`wrapContent(padding: UIEdgeInsets)`**
22
+
Adjust the view's width and height to wrap all its subviews. The method also adjusts subviews position to create a tight wrap. 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. WrapType values are `.horizontally`/`.vertically`/`.all` It is also possible to specify an optional padding around all subviews.
27
+
28
+
See [documentation](https://github.com/mirego/PinLayout#wrapContent) for more information
29
+
30
+
Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#141](https://github.com/mirego/PinLayout/pull/141)
* Fix an issue that was affecting UIScrollViews. PinLayout now set only the bounds's size and keep the origin.
@@ -139,7 +162,7 @@ Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#115](https://g
139
162
* Handle correctly view's `layer.anchorPoint`. PinLayout now update correctly the view position when the view's layer.anchorPoint has been modified, i.e. when it is not its default value (0.5, 0.5).
140
163
Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#114](https://github.com/mirego/PinLayout/pull/114)
Copy file name to clipboardExpand all lines: PinLayout.podspec
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
Pod::Spec.newdo |spec|
10
10
spec.name="PinLayout"
11
-
spec.version="1.7.4"
11
+
spec.version="1.7.5"
12
12
spec.summary="Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. [iOS/macOS/tvOS]"
13
13
spec.description="Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS]"
0 commit comments