Should eventually convert the code that stores user data in UserDefaults from using NSKeyedArchiver to instead use the Encoding/Decoding protocols. This would get rid of having to subclass NSObject and refactor the code to be more swifty.
Tried implementing this previously, but ran into a bug where the user data sporadically wasn't being saved in UserDefaults. Some info I found on Stackoverflow suggested this might be an issue with simulator but didn't have time to test/debug further.
Should eventually convert the code that stores user data in UserDefaults from using NSKeyedArchiver to instead use the Encoding/Decoding protocols. This would get rid of having to subclass NSObject and refactor the code to be more swifty.
Tried implementing this previously, but ran into a bug where the user data sporadically wasn't being saved in UserDefaults. Some info I found on Stackoverflow suggested this might be an issue with simulator but didn't have time to test/debug further.