Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.