21.3 Container Child Limit
Container views are limited to 10 direct descendant views. If a stack contains more than 10 direct children, Xcode will likely display the following syntax error:
Extra arguments at positions #11, #12 in call
If a stack exceeds the 10 direct children limit, the views will need to be embedded into multiple containers. This can, of course, be achieved by adding stacks as subviews, but another useful container is the Group view. In the following example, a VStack can contain 12 Text views by splitting the views between Group containers giving the VStack only two direct descendants:
VStack {
Group {
Text("Sample Text")
Text("Sample Text")
Text("Sample Text")
&...