Skip to content

Commit 863daef

Browse files
authored
Merge pull request #217 from VincentSit/patch-1
Fix typos.
2 parents 4882e1f + 5642227 commit 863daef

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
@@ -1477,7 +1477,7 @@ This example centered horizontally the view B in the space remaining at the righ
14771477
<br/>
14781478

14791479
<a name="automatic_sizing"></a>
1480-
## Automatic Sizing (UIView conly)
1480+
## Automatic Sizing (UIView only)
14811481
Sizing views as part of the manual layout process is made with `sizeThatFits(_ size: CGSize)` where a view returns its ideal size given his parent size. Implementing sizing code has always been cumbersome because you always end up writing the same code twice, a first time for the layout and the second time for sizing. Sizing usually use the same rules layout does but implemented slightly differently because no subview `frame` should be mutated during sizing. Since `PinLayout` already takes care of the layout, it makes perfect sense to leverage it's layout engine to compute sizes.
14821482

14831483
###### Traditional example:

0 commit comments

Comments
 (0)