Created
August 17, 2016 16:29
-
-
Save wess/f8f4242de350a75e00da464f259ce896 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Navigation { | |
case Onboarding | |
case Conversations | |
var controller:UIViewController { | |
switch self { | |
case Onboarding: | |
return OnboardingController() | |
case Conversations: | |
return ConversationsController() | |
} | |
} | |
var authRequired:bool { | |
return controller == AuthRequired | |
} | |
} | |
protocol AuthRequired {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment