We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9cf4ed commit 7b0ebf1Copy full SHA for 7b0ebf1
1 file changed
AndroidSwiftUICore/Tests/AndroidSwiftUICoreTests/ControlTests.swift
@@ -115,6 +115,23 @@ struct ControlTests {
115
#expect(node.children.count == 2)
116
}
117
118
+ @Test("Form nests Sections with their header and rows")
119
+ func formSection() {
120
+ let node = ViewHost(
121
+ Form {
122
+ Section("General") {
123
+ Text("Wi-Fi")
124
+ Text("Bluetooth")
125
+ }
126
127
+ ).evaluate()
128
+ #expect(node.type == "Form")
129
+ let section = node.children.first
130
+ #expect(section?.type == "Section")
131
+ #expect(section?.props["header"] == .string("General"))
132
+ #expect(section?.children.count == 2)
133
134
+
135
@Test("Environment objects reach @Environment properties in the subtree")
136
func environmentInjection() {
137
final class Model { var value = 42 }
0 commit comments