mirror of
https://github.com/yattee/yattee.git
synced 2026-05-11 18:05:03 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user