This comes close
var body: some View {
List {
Section {
VStack (spacing: 20) {
HStack (spacing: 20) {
RoundedRectangle(cornerRadius: 12, style: .continuous)
.foregroundColor(Color(.systemRed))
RoundedRectangle(cornerRadius: 12, style: .continuous)
.foregroundColor(Color(.systemYellow))
}
.frame(height: 100)
HStack (spacing: 20) {
RoundedRectangle(cornerRadius: 12, style: .continuous)
.foregroundColor(Color(.systemGreen))
RoundedRectangle(cornerRadius: 12, style: .continuous)
.foregroundColor(Color(.systemBlue))
}
.frame(height: 100)
}
}
Section(header: Text("My Lists")) {
ForEach(1..<21) { index in
Text("\(index)")
}
}
}
.listStyle(InsetGroupedListStyle())
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
.preferredColorScheme(.dark)
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: