Skip to content

Instantly share code, notes, and snippets.

@polac24
Last active August 26, 2017 18:06
Show Gist options
  • Save polac24/340293d06925155eca03e838e98ee85a to your computer and use it in GitHub Desktop.
Save polac24/340293d06925155eca03e838e98ee85a to your computer and use it in GitHub Desktop.
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