How do I save the value of an enum case to UserDefaults? I have tried and had no luck. I checked multiple sites including this one, but with no luck, they all are in Swift 2 or in Objective-c which I can't translate at all.
How do I save the value of an enum case to UserDefaults? I have tried and had no luck. I checked multiple sites including this one, but with no luck, they all are in Swift 2 or in Objective-c which I can't translate at all.