Prepend team name to shared user defaults to get rid of warning and hopefully prevent user default corruption
This commit is contained in:
parent
458f79871f
commit
f57d3f7df8
|
@ -10,7 +10,11 @@ import UIKit
|
|||
|
||||
struct AppDefaults {
|
||||
|
||||
static var shared = UserDefaults.init(suiteName: "group.\(Bundle.main.bundleIdentifier!)")!
|
||||
static var shared: UserDefaults = {
|
||||
let appIdentifierPrefix = Bundle.main.object(forInfoDictionaryKey: "AppIdentifierPrefix") as! String
|
||||
let suiteName = "\(appIdentifierPrefix)group.\(Bundle.main.bundleIdentifier!)"
|
||||
return UserDefaults.init(suiteName: suiteName)!
|
||||
}()
|
||||
|
||||
struct Key {
|
||||
static let lastImageCacheFlushDate = "lastImageCacheFlushDate"
|
||||
|
|
Loading…
Reference in New Issue