From 8f031e4d57441c1363772a3a282bdfcd3a9a36ae Mon Sep 17 00:00:00 2001 From: david-swift Date: Thu, 21 Sep 2023 19:42:26 +0200 Subject: [PATCH] Fix no selection tab being visible as subtabs with the sidebar design --- Sources/SettingsKit/Model/Data/SettingsTab.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SettingsKit/Model/Data/SettingsTab.swift b/Sources/SettingsKit/Model/Data/SettingsTab.swift index 9c97ac2..e07d6f6 100755 --- a/Sources/SettingsKit/Model/Data/SettingsTab.swift +++ b/Sources/SettingsKit/Model/Data/SettingsTab.swift @@ -101,8 +101,8 @@ public struct SettingsTab: Identifiable, View { NavigationStack { Form { ForEach(content) { content in - NavigationLink(value: content.id) { - content.sidebarLabel + if !content.type.isNoSelection { + NavigationLink(value: content.id) { content.sidebarLabel } } } if !sidebarActions.isEmpty {