Untitled
Anonymous
swift
08/10/2023 11:52 AM
960 B
810
Indexable
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()
}
}
}
}
}Editor is loading...