Add Reddit API deprecation alert code.

This commit is contained in:
Brent Simmons
2023-07-02 15:09:12 -07:00
parent 7556428c29
commit d4092b21fd
2 changed files with 56 additions and 17 deletions

View File

@@ -60,6 +60,7 @@ final class AppDefaults: ObservableObject {
static let useSystemBrowser = "useSystemBrowser"
static let currentThemeName = "currentThemeName"
static let twitterDeprecationAlertShown = "twitterDeprecationAlertShown"
static let redditDeprecationAlertShown = "redditDeprecationAlertShown"
static let markArticlesAsReadOnScroll = "markArticlesAsReadOnScroll"
}
@@ -255,7 +256,16 @@ final class AppDefaults: ObservableObject {
AppDefaults.setBool(for: Key.twitterDeprecationAlertShown, newValue)
}
}
var redditDeprecationAlertShown: Bool {
get {
return AppDefaults.bool(for: Key.redditDeprecationAlertShown)
}
set {
AppDefaults.setBool(for: Key.redditDeprecationAlertShown, newValue)
}
}
var markArticlesAsReadOnScroll: Bool {
get {
return AppDefaults.bool(for: Key.markArticlesAsReadOnScroll)