Post

Replies

Boosts

Views

Activity

Reply to SwiftUI 4: Set list background color
Try this. struct ContentView: View {     var body: some View {         List {             ForEach(0..<1) {_ in                 Text("Hello World")             }             .listRowBackground(Color.red)         }         .listStyle(.insetGrouped)     } }
Sep ’22