Skip to content

Instantly share code, notes, and snippets.

@AndreyPanov
Created April 28, 2017 11:39
Show Gist options
  • Save AndreyPanov/4b07f4aa0a1aa8a17d579b1959a29c3c to your computer and use it in GitHub Desktop.
Save AndreyPanov/4b07f4aa0a1aa8a17d579b1959a29c3c to your computer and use it in GitHub Desktop.
enum Guide {
case headerLabel((UILabel) -> ())
case bodyLabel((UILabel) -> ())
case loginTextField((UITextField) -> ())
func identifier() -> String {
switch self {
case .headerLabel: return "header"
case .bodyLabel: return "body"
case .loginTextField: return "login"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment