FormWithGroupedStyleType
@MainActor
public struct FormWithGroupedStyleType : IntrospectableViewType
An abstract representation of the Form
type in SwiftUI, with .grouped
style.
struct ContentView: View {
var body: some View {
Form {
Text("Item 1")
Text("Item 2")
Text("Item 3")
}
.formStyle(.grouped)
.introspect(.form(style: .grouped), on: .iOS(.v16Later)) {
print(type(of: $0)) // UITableView
}
}
}