How not to use enums in Swift
In Swift, enums are powerful. So powerful in fact, that it’s easy to abuse them.
In Swift, enums are powerful. So powerful in fact, that it’s easy to abuse them.
Go from calling button.setTitle("Title", for: .normal)
to button.titles[.normal] = "Title"
by using extensions and generics