Good day, how do I just make the picker visible and not have the lists section background visible like in the settings app?
The code:
import SwiftUI
struct ContentView: View {
@State private var on: Bool = false
var body: some View {
List{
Picker("OK", selection: $on) {
Text("A")
Text("B")
}
.pickerStyle(.segmented)
}
}
}
The Settings app picker:
Thank You.