File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,22 +11,22 @@ its own size.
11
11
12
12
At its core, SwiftUI’s layout algorithm is wonderfully simple:
13
13
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 ` .
16
16
17
17
2 . The child view determines its own size, taking the proposed size into
18
18
account, as well as the sizes of its own children (it’s a recursive
19
19
process).
20
20
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) .
23
23
24
24
4 . The parent view positions its children.
25
25
26
26
Complex layouts in SwiftUI can be achieved by composing built-in views and view
27
27
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.
30
30
31
31
## Components
32
32
You can’t perform that action at this time.
0 commit comments