Skip to content

Commit 5735864

Browse files
author
Luc Dion
committed
Update Readme.md
1 parent 50793a5 commit 5735864

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -712,19 +712,18 @@ Set the view’s size to match the referenced view’s size
712712

713713
PinLayout has methods to adjust the view’s size based on their content.
714714

715+
The resulting size will always respect [`minWidth`/`maxWidth`/`minHeight`/`maxHeight`](#minmax_width_height_size) values.
716+
715717

716718
**Methods:**
717719

718720
* **`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()`.
720722

721-
* **`sizeToFit(_ fitType: FitType)`**
723+
* **`sizeToFit(: FitType)`**
722724
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.
728727

729728
**Parameter `fitType`:** Identify the reference dimension (width / height) that will be used to adjust the view's size.
730729

0 commit comments

Comments
 (0)