Created
June 13, 2018 09:50
-
-
Save tiagomartinho/1492f09ea2109d87b1f29a406e413c4b to your computer and use it in GitHub Desktop.
ThemeName
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 ThemeName: String { | |
case light, dark, black | |
var theme: Theme { | |
switch self { | |
case .light: | |
return LightTheme() | |
case .dark: | |
return DarkTheme() | |
case .black: | |
return BlackTheme() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment