Since tvOS 18, my Picker view with inline style is not showing the checkmark on the selected item.
enum Flavor: String, Identifiable {
case chocolate, vanilla, strawberry
var id: Self { self }
}
struct ContentView: View {
@State private var selectedFlavor: Flavor = .chocolate
var body: some View {
NavigationView {
Form {
Picker("Flavor", selection: $selectedFlavor) {
Text("Chocolate").tag(Flavor.chocolate)
Text("Vanilla").tag(Flavor.vanilla)
Text("Strawberry").tag(Flavor.strawberry)
}.pickerStyle(.inline)
}
}
}
}
Am I missing something? When I run this on tvOS 17.x, it works fine.
Selecting any option will automatically load the page