mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
Hide Home shortcuts on tvOS
This commit is contained in:
@@ -31,8 +31,10 @@ struct HomeSettingsView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
List {
|
List {
|
||||||
|
#if !os(tvOS)
|
||||||
shortcutsSection
|
shortcutsSection
|
||||||
availableShortcutsSection
|
availableShortcutsSection
|
||||||
|
#endif
|
||||||
sectionsSection
|
sectionsSection
|
||||||
availableSectionsSection
|
availableSectionsSection
|
||||||
itemsLimitSection
|
itemsLimitSection
|
||||||
|
|||||||
@@ -188,9 +188,11 @@ struct HomeView: View {
|
|||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
private var homeContent: some View {
|
private var homeContent: some View {
|
||||||
|
#if !os(tvOS)
|
||||||
if hasVisibleShortcuts {
|
if hasVisibleShortcuts {
|
||||||
shortcutsSection
|
shortcutsSection
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ForEach(settingsManager?.visibleSections() ?? HomeSectionItem.defaultOrder.filter { HomeSectionItem.defaultVisibility[$0] == true }) { section in
|
ForEach(settingsManager?.visibleSections() ?? HomeSectionItem.defaultOrder.filter { HomeSectionItem.defaultVisibility[$0] == true }) { section in
|
||||||
sectionView(for: section)
|
sectionView(for: section)
|
||||||
|
|||||||
Reference in New Issue
Block a user