Last active
August 20, 2016 16:23
-
-
Save charlag/e86b30afc2cfd42dd9741fd239311632 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 LoginScreenState { | |
case ShowLogIn | |
case ShowSignUp | |
var cells: [AuthCellType] { | |
switch self { | |
case .ShowLogIn: | |
return [ | |
.Headline, | |
.Separator, | |
.EmailTextField, | |
.PasswordTextField, | |
.LoginButton | |
] | |
case .ShowSignUp: | |
return [ | |
.EmailTextField, | |
.NameTextField, | |
.PasswordTextField, | |
.LoginButton | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment