mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 10:55:03 +00:00
Fix tvOS pickers
This commit is contained in:
@@ -333,7 +333,10 @@ struct SubscriptionsView: View {
|
|||||||
Toggle("viewOptions.showSidebar", isOn: $showSidebar)
|
Toggle("viewOptions.showSidebar", isOn: $showSidebar)
|
||||||
}
|
}
|
||||||
#elseif os(tvOS)
|
#elseif os(tvOS)
|
||||||
Toggle("viewOptions.showSidebar", isOn: $showSidebar)
|
PlatformMenuPicker(String(localized: "viewOptions.showSidebar"), selection: $showSidebar) {
|
||||||
|
Text("common.on").tag(true)
|
||||||
|
Text("common.off").tag(false)
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Layout picker (inline menu)
|
// Layout picker (inline menu)
|
||||||
@@ -370,7 +373,14 @@ struct SubscriptionsView: View {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if os(tvOS)
|
||||||
|
PlatformMenuPicker(String(localized: "viewOptions.hideWatched"), selection: $hideWatched) {
|
||||||
|
Text("common.on").tag(true)
|
||||||
|
Text("common.off").tag(false)
|
||||||
|
}
|
||||||
|
#else
|
||||||
Toggle("viewOptions.hideWatched", isOn: $hideWatched)
|
Toggle("viewOptions.hideWatched", isOn: $hideWatched)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
Picker("viewOptions.channelStrip", selection: $channelStripSize) {
|
Picker("viewOptions.channelStrip", selection: $channelStripSize) {
|
||||||
|
|||||||
Reference in New Issue
Block a user