Raw Value of Enumeration, Default value of a class/structure, What's the different?
问题 In Swift, there is Raw Value in Enumeration and Default Value in class and structure. What's the different? Can someone explain that for me? Ex. of Raw Values of Enumeration (From the Office Swift Document) enum ASCIIControlCaracter: Character { case Tab = "\t" case LineFeed = "\n" case CarriageReturn = "\r" } 回答1: From Apple docs: Raw Values The barcode example in Associated Values shows how cases of an enumeration can declare that they store associated values of different types. As an