Last active
August 26, 2017 18:06
-
-
Save polac24/340293d06925155eca03e838e98ee85a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct BestEnumRaw: ExpressibleByStringLiteral{ | |
let rawString:String? | |
init(){ | |
rawString = nil | |
} | |
init(stringLiteral value: String){ | |
rawString = value | |
} | |
init(extendedGraphemeClusterLiteral value: String){ | |
rawString = value | |
} | |
init(unicodeScalarLiteral value: String){ | |
rawString = value | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment