From 534b098ca65096195f135afee2401dc67c6f9c63 Mon Sep 17 00:00:00 2001 From: Oleg <51740599+easydev991@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:27:58 +0300 Subject: [PATCH] Hide settings link on macos (#1681) --- IceCubesApp/App/Tabs/Settings/SettingsTab.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IceCubesApp/App/Tabs/Settings/SettingsTab.swift b/IceCubesApp/App/Tabs/Settings/SettingsTab.swift index 51919154..6f2fccee 100644 --- a/IceCubesApp/App/Tabs/Settings/SettingsTab.swift +++ b/IceCubesApp/App/Tabs/Settings/SettingsTab.swift @@ -159,10 +159,12 @@ struct SettingsTabs: View { NavigationLink(destination: TranslationSettingsView()) { Label("settings.general.translate", systemImage: "captions.bubble") } + #if !targetEnvironment(macCatalyst) Link(destination: URL(string: UIApplication.openSettingsURLString)!) { Label("settings.system", systemImage: "gear") } .tint(theme.labelColor) + #endif } .listRowBackground(theme.primaryBackgroundColor) }