Skip to content

Instantly share code, notes, and snippets.

@serhiybutz
Last active August 6, 2020 08:17
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 serhiybutz/68a50db55be7ef752719acd95cd5c952 to your computer and use it in GitHub Desktop.
Save serhiybutz/68a50db55be7ef752719acd95cd5c952 to your computer and use it in GitHub Desktop.
struct MyThemeSettings: ThemeModelProtocol {
let appBgColor: UIColor
let highlightedBgColor: UIColor
let textColor: UIColor
}
enum MyTheme: ThemeProtocol {
case light
case dark
var settings: MyThemeSettings {
switch self {
case .light: return MyThemeSettings.lightTheme
case .dark: return MyThemeSettings.darkTheme
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment