Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Methods on Enumerations9:37 with Pasan Premaratne
Enums are sort of like other objects in Swift. Like classes and structs we can add instance methods to an enum but unlike classes and structs, enums can’t have stored properties. In this video, let’s add a method to return a UIColor object using the components we select.