Skip to content

Instantly share code, notes, and snippets.

@serhiybutz
Last active July 13, 2020 02:31
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/31ed757f32fc419042dbb21db46e41da to your computer and use it in GitHub Desktop.
Save serhiybutz/31ed757f32fc419042dbb21db46e41da to your computer and use it in GitHub Desktop.
@objc enum MyTheme: Int {
    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