diff --git a/iOS/AppDefaults.swift b/iOS/AppDefaults.swift index dcf2439a5..53589a0dc 100644 --- a/iOS/AppDefaults.swift +++ b/iOS/AppDefaults.swift @@ -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"