I cannot initialize an enumeration using the rawValue initializer. Any thoughts? The error is commented below:
//: Playground - noun: a place where people can play // Xcode Version 7.3 (7D175) import UIKit enum Theme { case Default, Dark, Graphical } let possibleTheme = Theme(rawValue: 1) // Error: 'Theme' cannot be constructed because it has no accessible initializers.
source share