Skip to content

Commit 9df6d9f

Browse files
author
Baris Sencan
committed
Fix example
1 parent 93f4707 commit 9df6d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func sizeToFit(constrainedSize: CGSize) -> CGSize
9494
So let's say that you have a label inside a view and you want to lay it out with an inset of 4 points on all sides, you could easily do the following:
9595

9696
```swift
97-
myLabel.sizeToFit(inset(myView, 4))
97+
myLabel.sizeToFit(inset(myView.size, 4))
9898
myLabel.origin =~ (4, 4)
9999
```
100100

0 commit comments

Comments
 (0)