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