skip to Main Content

Ios swift – UserDefaults value changes between app launches

I am using a user default values to observe notification preferences. I print the value on app launch: func application(_ application: UIApplication, didFinishLaunchingWithOptionslaunchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { print("notifications are initially (UserDefaults.standard.bool(forKey: UserDefaults.Keys.notificationsEnabled))") } And on app…

VIEW QUESTION
Back To Top
Search