Fix disabled pickers in View Options sheet on tvOS

Use .pickerStyle(.menu) for Row Size, Columns, and Channel Strip
pickers on tvOS so they work inside a sheet without NavigationStack.
This commit is contained in:
Arkadiusz Fal
2026-04-13 21:25:20 +02:00
parent 893878c8a3
commit 338127c692

View File

@@ -55,6 +55,9 @@ struct ViewOptionsSheet: View {
Text("viewOptions.rowSize.regular").tag(VideoRowStyle.regular)
Text("viewOptions.rowSize.large").tag(VideoRowStyle.large)
}
#if os(tvOS)
.pickerStyle(.menu)
#endif
}
// Grid-specific options
@@ -65,6 +68,7 @@ struct ViewOptionsSheet: View {
Text("\(count)").tag(count)
}
}
.pickerStyle(.menu)
#else
Stepper(
"viewOptions.columns \(effectiveColumns)",
@@ -86,6 +90,9 @@ struct ViewOptionsSheet: View {
Text(size.displayName).tag(size)
}
}
#if os(tvOS)
.pickerStyle(.menu)
#endif
}
}
}