User Defaults in Swift
Q. What are User Defaults? Ans. UserDefaults in Swift is a class that stores small amounts of data such as user preferences and application settings. We can store preferences like the user’s favourite color or save state like “user has activated button”. It allows us to save and retrieve data in key-value pairs, similar to a…