Created
March 29, 2018 19:51
-
-
Save bill350/aecbacb704662e184ba960bee3824b01 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
// Type of screen and its error view to display | |
enum ErrorScreen { | |
case home | |
case details | |
var errorView: ErrorView.Type? { | |
switch self { | |
default: | |
return ErrorViewRetry.self | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment