1 year ago
#317572
Lobont Andrei
UserDefaults loses data when app is suspended?
Hi I am trying to save a boolean value to true just before opening the phone settings. When navigating to the settings I am setting my bool to true and when reopening the app it should be read and set back to false. This happens in a weird way since one time it works and the next time it dosen't and it keeps going with this pattern.
Anyone has any ideas as to why this could happend?
ios
swift
userdefaults
0 Answers
Your Answer