I'm trying to get something similar to the following using SwiftUI and Picker()

But when I try to use Section(header: ) I get the following:

Form {
Picker("S", selection: $sensor) {
Section(header: Text("This should be a header")) {
Text("This is the content")
Text("This is more content")
}
Section(header: Text("Another header")) {
Text("This is the content 2")
Text("This is more content 2")
}
}
}
