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
@@ -786,15 +786,11 @@ The method adjust the view's size based on the view's `sizeThatFits()` method re
786
786
**Parameter `fitType`:** Identify the reference dimension (width / height) that will be used to adjust the view's size.
787
787
788
788
***`.width`**: The method adjust the view's size based on the **reference width**.
789
-
* If properties related to the width have been pinned (e.g: width, left & right, margins, ...),
790
-
the **reference width will be determined by these properties**, else the **current view's width**
791
-
will be used.
789
+
* If properties related to the width have been pinned (e.g: width, left & right, margins, ...), the **reference width will be determined by these properties**, if not the **current view's width** will be used.
792
790
* The resulting width will always **match the reference width**.
793
791
794
792
***`.height`**: The method adjust the view's size based on the **reference height**.
795
-
* If properties related to the height have been pinned (e.g: height, top & bottom, margins, ...),
796
-
the **reference height will be determined by these properties**, else the **current view's height**
797
-
will be used.
793
+
* If properties related to the height have been pinned (e.g: height, top & bottom, margins, ...), the **reference height will be determined by these properties**, if not the **current view's height** will be used.
798
794
* The resulting height will always **match the reference height**.
799
795
800
796
***`.widthFlexible`**: Similar to `.width`, except that PinLayout won't constrain the resulting width to match the reference width. The resulting width may be smaller of bigger depending on the view's sizeThatFits(..) method result. For example a single line UILabel may returns a smaller width if its string is smaller than the reference width.
@@ -1192,14 +1188,14 @@ Warnings can be disabled also in debug mode by setting the boolean Pin.logWarnin
1192
1188
## PinLayout style guide
1193
1189
1194
1190
* You should always specifies methods in the same order, it makes layout lines easier to understand. Here is our prefered ordering:
0 commit comments