From b1c5d192d08cf138077cadc95a74eec2b6cd1ed1 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 14 Jun 2023 13:08:51 -0700 Subject: [PATCH] Add redditDeprecationAlertShown to AppDefaults. --- iOS/AppDefaults.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/iOS/AppDefaults.swift b/iOS/AppDefaults.swift index 38242b0b9..04c3ed9df 100644 --- a/iOS/AppDefaults.swift +++ b/iOS/AppDefaults.swift @@ -59,6 +59,7 @@ final class AppDefaults { static let useSystemBrowser = "useSystemBrowser" static let currentThemeName = "currentThemeName" static let twitterDeprecationAlertShown = "twitterDeprecationAlertShown" + static let redditDeprecationAlertShown = "redditDeprecationAlertShown" } let isDeveloperBuild: Bool = { @@ -241,6 +242,15 @@ final class AppDefaults { AppDefaults.setBool(for: Key.twitterDeprecationAlertShown, newValue) } } + + var redditDeprecationAlertShown: Bool { + get { + return AppDefaults.bool(for: Key.redditDeprecationAlertShown) + } + set { + AppDefaults.setBool(for: Key.redditDeprecationAlertShown, newValue) + } + } static func registerDefaults() { let defaults: [String : Any] = [Key.userInterfaceColorPalette: UserInterfaceColorPalette.automatic.rawValue,