Shows Twitter Deprecation Alert on iOS

This commit is contained in:
Stuart Breckenridge
2023-02-05 08:46:16 +08:00
parent 6169df75cc
commit b35c4df28d
2 changed files with 60 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ final class AppDefaults {
static let addFolderAccountID = "addFolderAccountID"
static let useSystemBrowser = "useSystemBrowser"
static let currentThemeName = "currentThemeName"
static let twitterDeprecationAlertShown = "twitterDeprecationAlertShown"
}
let isDeveloperBuild: Bool = {
@@ -232,6 +233,15 @@ final class AppDefaults {
}
}
var twitterDeprecationAlertShown: Bool {
get {
return AppDefaults.bool(for: Key.twitterDeprecationAlertShown)
}
set {
AppDefaults.setBool(for: Key.twitterDeprecationAlertShown, newValue)
}
}
static func registerDefaults() {
let defaults: [String : Any] = [Key.userInterfaceColorPalette: UserInterfaceColorPalette.automatic.rawValue,
Key.timelineGroupByFeed: false,