Skip to content

Instantly share code, notes, and snippets.

@mktakuya
Created August 23, 2018 05:38
Show Gist options
  • Save mktakuya/ebe51ef23a1696c9480aa74cc781dacb to your computer and use it in GitHub Desktop.
Save mktakuya/ebe51ef23a1696c9480aa74cc781dacb to your computer and use it in GitHub Desktop.
enum Segues {
case toHogeVC
case toFugaVC
func getIdentifier() -> String {
switch self {
case .toHogeVC:
return "toHogeVC"
case .toFugaVC:
return "toFugaVC"
}
}
}
print(Segues.toHogeVC.getIdentifier())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment