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
-21Lines changed: 0 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -458,8 +458,6 @@ The value specifies the width and the height of the view in pixels, creating a s
458
458
*`size(of view: UIView)`
459
459
Set the view’s size to match the referenced view’s size
460
460
461
-
*`sizeToFit()`
462
-
463
461
464
462
###### Usage examples:
465
463
```javascript
@@ -475,25 +473,6 @@ Set the view’s size to match the referenced view’s size
475
473
view.pin.size(250)
476
474
```
477
475
478
-
479
-
### sizeToFit()
480
-
481
-
sizeToFit() is the equivalent of calling sizeThatFits() on the size of the view once PinLayout has computed the size and has applied margins.
482
-
483
-
###### Usage examples:
484
-
```javascript
485
-
label.pin.width(200).sizeToFit()
486
-
```
487
-
488
-
###### Example:
489
-
The following example layout the UILabel on the right side of the UIImageView with a margin of 10px all around and also adjust the UILabel’t height to fit the text size. Note on the result that the UILabel’s height has changed to fit its content.
0 commit comments