Skip to content

Commit 13ce562

Browse files
committed
Readme wording improvements
1 parent 14d1c60 commit 13ce562

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ its own size.
1111

1212
At its core, SwiftUI’s layout algorithm is wonderfully simple:
1313

14-
1. Each parent view proposes a size to its child view(s). Width and height are
15-
both optional values; either one (or both) can be `nil`.
14+
1. The parent view proposes a size to its child view(s). Width and height are
15+
both optional; either one (or both) can be `nil`.
1616

1717
2. The child view determines its own size, taking the proposed size into
1818
account, as well as the sizes of its own children (it’s a recursive
1919
process).
2020

21-
3. The child reports its size back to its parent. The parent cannot change the
22-
size: in SwiftUI, each view determines its own size.
21+
3. The child reports its size back to the parent. The parent can’t change the
22+
child’s size (in SwiftUI, each view determines its own size).
2323

2424
4. The parent view positions its children.
2525

2626
Complex layouts in SwiftUI can be achieved by composing built-in views and view
2727
modifiers. The tricky part about understanding the layout system is learning the
28-
layout behavior of the built-in views, many of which are poorly documented (as
29-
of November 2022). This package aims to help you learn.
28+
layout behaviors of the built-in views, many of which are poorly documented (as
29+
of November 2022). The goal of this package is to help you learn.
3030

3131
## Components
3232

0 commit comments

Comments
 (0)