How do I save an Enum Case value to UserDefaults for further usage

Viewed 3629

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.

2 Answers
Related