Untitled

mail@pastecode.io avatarunknown
swift
a month ago
719 B
37
Indexable
Never
struct ContentView: View {
    var body: some View {
        List {
            Section {
                ForEach(1...20, id: \.self) {
                    Text("World, \($0)!")
                }
            } header: {
                HStack {
                    Spacer()
                    VStack(alignment: .leading) {
                        ForEach(1...10, id: \.self) {
                            Text("Hello, \($0)!")
                                .font(.system(size: 17))
                                .foregroundColor(.primary)
                                .textCase(.none)
                        }
                    }
                    Spacer()
                }
            }
        }
    }
}