Last active
November 4, 2017 08:26
-
-
Save AndreyPanov/b2def60d3e45e2a02b84e219ffd15a3e 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
fileprivate enum LaunchInstructor { | |
case main, auth, onboarding | |
static func configure(tutorialWasShown: Bool, isAutorized: Bool) -> LaunchInstructor { | |
switch (tutorialWasShown, isAutorized) { | |
case (true, false), (false, false): return .auth | |
case (false, true): return .onboarding | |
case (true, true): return .main | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
case (true, false), (false, false): return .auth
can be represented as:case (_, false): return .auth