Manage UserDefaults Keys with Enum

Clean and easy to implement

UserDefaults is commonly used to store simple persistence data or state. But, improper key management would lead to future major problem and code messiness. Moreover, sometimes the typo of key name might result to untraced bugs.

Therefore, let’s try to manage the UserDefaults keys in a cleaner way using Enum (Enumeration). Enum is a…