From 9dec4275596d2be4d46d41bb6ebe9bb42cef87e6 Mon Sep 17 00:00:00 2001 From: Sabrina Tardio Date: Thu, 14 Mar 2024 10:49:35 +0100 Subject: [PATCH] hide cards to Big Sur users --- DuckDuckGo/Preferences/Model/AppearancePreferences.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DuckDuckGo/Preferences/Model/AppearancePreferences.swift b/DuckDuckGo/Preferences/Model/AppearancePreferences.swift index 28b4c55576..ab73548d08 100644 --- a/DuckDuckGo/Preferences/Model/AppearancePreferences.swift +++ b/DuckDuckGo/Preferences/Model/AppearancePreferences.swift @@ -248,8 +248,10 @@ final class AppearancePreferences: ObservableObject { } var isContinueSetUpAvailable: Bool { + let osVersion = ProcessInfo.processInfo.operatingSystemVersion + let privacyConfig = AppPrivacyFeatures.shared.contentBlocking.privacyConfigurationManager.privacyConfig - return privacyConfig.isEnabled(featureKey: .newTabContinueSetUp) + return privacyConfig.isEnabled(featureKey: .newTabContinueSetUp) && osVersion.majorVersion >= 12 } func updateUserInterfaceStyle() {