Make it more clear that we are using shared defaults

This commit is contained in:
Maurice Parker 2019-09-26 14:29:00 -05:00
parent e60ce37dc9
commit 80a5a539e8
2 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import UIKit
struct AppDefaults {
static var shared = UserDefaults.standard
static var shared = UserDefaults.init(suiteName: "group.\(Bundle.main.bundleIdentifier!)")!
struct Key {
static let lastImageCacheFlushDate = "lastImageCacheFlushDate"

View File

@ -56,7 +56,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
// Force lazy initialization of the web view provider so that it can warm up the queue of prepared web views
let _ = ArticleViewControllerWebViewProvider.shared
AccountManager.shared = AccountManager()
AppDefaults.shared = UserDefaults.init(suiteName: "group.\(Bundle.main.bundleIdentifier!)")!
registerBackgroundTasks()