Created
August 23, 2018 05:38
-
-
Save mktakuya/ebe51ef23a1696c9480aa74cc781dacb 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
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