Created
September 26, 2015 00:56
-
-
Save pedrogk/69d24e86385da5582687 to your computer and use it in GitHub Desktop.
Gender
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
import UIKit | |
enum Gender: Printable { | |
case Female | |
case Male | |
var description: String { | |
switch self { | |
case .Male: return "Male" | |
case .Female: return "Female" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment