When you want to check the contents of UserDefaults, set it anywhere and display it It is a memorandum
//Show all data stored in UserDefaults
for (key, value) in UserDefaults.standard.dictionaryRepresentation().sorted(by: { $0.0 < $1.0 }) {
print("\(key) -> \(value)")
}
Recommended Posts