Answers for "How to use UserDefaults in swift library"

0

how to fmake sure that data is save in userdefault

UserDefaults.standard.bool(forKey: "Key")
 UserDefaults.standard.integer(forKey: "Key")
 UserDefaults.standard.string(forKey: "Key")
Posted by: Guest on December-03-2020
0

how to fmake sure that data is save in userdefault

if let appDomain = Bundle.main.bundleIdentifier {
UserDefaults.standard.removePersistentDomain(forName: appDomain)
 }
Posted by: Guest on December-03-2020

Code answers related to "How to use UserDefaults in swift library"

Code answers related to "Swift"

Browse Popular Code Answers by Language