diff --git a/iOS/AppDefaults.swift b/iOS/AppDefaults.swift index 31d006641..09cd6a317 100644 --- a/iOS/AppDefaults.swift +++ b/iOS/AppDefaults.swift @@ -10,12 +10,9 @@ import UIKit struct AppDefaults { - private static var suiteName: String = { - let appIdentifierPrefix = Bundle.main.object(forInfoDictionaryKey: "AppIdentifierPrefix") as! String - return "\(appIdentifierPrefix)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)! }