We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f4707 commit 9df6d9fCopy full SHA for 9df6d9f
README.md
@@ -94,7 +94,7 @@ func sizeToFit(constrainedSize: CGSize) -> CGSize
94
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:
95
96
```swift
97
-myLabel.sizeToFit(inset(myView, 4))
+myLabel.sizeToFit(inset(myView.size, 4))
98
myLabel.origin =~ (4, 4)
99
```
100
0 commit comments