Last active
August 6, 2020 08:17
-
-
Save serhiybutz/68a50db55be7ef752719acd95cd5c952 to your computer and use it in GitHub Desktop.
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
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