FormWithGroupedStyleType

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(.v16, .v17)) {
            print(type(of: $0)) // UITableView
        }
    }
}
  • Undocumented

    See more

    Declaration

    Swift

    public enum Style