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
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -712,19 +712,18 @@ Set the view’s size to match the referenced view’s size
712
712
713
713
PinLayout has methods to adjust the view’s size based on their content.
714
714
715
+
The resulting size will always respect [`minWidth`/`maxWidth`/`minHeight`/`maxHeight`](#minmax_width_height_size) values.
716
+
715
717
716
718
**Methods:**
717
719
718
720
***`sizeToFit()`**
719
-
The method adjust the view's size based on the result of the method `UIView.sizeToFit()`. The size will respect `minWidth` / `maxWidth` / `minHeight` / `maxHeight`.
721
+
The method adjust the view's size based on the result of the method `UIView.sizeToFit()`.
720
722
721
-
***`sizeToFit(_ fitType: FitType)`**
723
+
***`sizeToFit(: FitType)`**
722
724
The method adjust the view's size based on the result of the method `sizeThatFits(:CGSize)`.
723
-
PinLayout will adjust either the view's width or height based on the `fitType` parameter value.
724
-
725
-
Notes:
726
-
* The resulting size will always respect `minWidth` / `maxWidth` / `minHeight` / `maxHeight`.
727
-
* If margins have been specified, they will be applied before calling the view's `sizeThatFits(:CGSize)` method.
725
+
PinLayout will adjust either the view's width or height based on the `fitType` parameter value.
726
+
If margins are specified, they will be applied before calling the view's `sizeThatFits(:CGSize)` method.
728
727
729
728
**Parameter `fitType`:** Identify the reference dimension (width / height) that will be used to adjust the view's size.
0 commit comments