Home > AI > IOS > SwiftUI >

GroupedListStyle

Example:

struct ContentView: View {
    var body: some View {
        List {
            Section(header: Text("Examples")) {
                Text("Example Row")
                Text("Example Row")
                Text("Example Row")
            }
        }
        .listStyle(GroupedListStyle())
    }
}

Leave a Reply