3451d9ea12
Resolves, but adds no tests cases to the test suite for #294. See the issue for the detailed description of the problem. I will add end-to-end tests for this in future PRs. I've tested these cases manually so far: ```swift struct Choice: View { @State private var choice = false var body: some View { HStack { Button("Trigger") { choice.toggle() } if choice { Group { Text("true") Text("true") } } else { VStack { Text("false") } } Text("end") } } } ``` Note the `Group` view with multiple children in this one, it uncovered required checks for `GroupView` conformance. Also tested these more simple cases: ```swift struct Choice: View { @State private var choice = false var body: some View { HStack { Button("Trigger") { choice.toggle() } if choice { Group { // single child Text("true") } } else { VStack { Text("false") } } Text("end") } } } ``` and ```swift struct Choice: View { @State private var choice = false var body: some View { HStack { Button("Trigger") { choice.toggle() } if choice { // single child, no nesting Text("true") } else { VStack { Text("false") } } Text("end") } } } ``` |
||
---|---|---|
.. | ||
ColorTests.swift | ||
ReconcilerTests.swift |