eonist / DarkMode

🔦 DarkMode made simple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backward compatibility

eonist opened this issue · comments

// ⚠️️ this also works ⚠️️, might be more backward / forward compatible?
// self.init(name: nil) {
//   switch $0.name {
//   case .darkAqua, .vibrantDark, .accessibilityHighContrastDarkAqua, .accessibilityHighContrastVibrantDark:
//      return dark
//   default:
//      return light
//   }
// }