Skip to content

Instantly share code, notes, and snippets.

@tiagomartinho
Created June 13, 2018 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagomartinho/1492f09ea2109d87b1f29a406e413c4b to your computer and use it in GitHub Desktop.
Save tiagomartinho/1492f09ea2109d87b1f29a406e413c4b to your computer and use it in GitHub Desktop.
ThemeName
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