Untitled
unknown
swift
2 years ago
719 B
735
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...