From 249b1971803ff9477871bac853056487f95e6ba1 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sun, 4 Aug 2024 20:12:43 -0700 Subject: [PATCH] Remove empty logs header from ios 16 --- Meshtastic/Views/Settings/Settings.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Meshtastic/Views/Settings/Settings.swift b/Meshtastic/Views/Settings/Settings.swift index faae073e..880dabf2 100644 --- a/Meshtastic/Views/Settings/Settings.swift +++ b/Meshtastic/Views/Settings/Settings.swift @@ -243,13 +243,11 @@ struct Settings: View { var loggingSection: some View { Section(header: Text("logging")) { - if #available (iOS 17.0, *) { - NavigationLink(value: SettingsNavigationState.debugLogs) { - Label { - Text("Logs") - } icon: { - Image(systemName: "scroll") - } + NavigationLink(value: SettingsNavigationState.debugLogs) { + Label { + Text("Logs") + } icon: { + Image(systemName: "scroll") } } } @@ -401,7 +399,9 @@ struct Settings: View { radioConfigurationSection deviceConfigurationSection moduleConfigurationSection - loggingSection + if #available (iOS 17.0, *) { + loggingSection + } #if DEBUG developersSection #endif