Skip to content

Instantly share code, notes, and snippets.

@maximkrouk
Created January 14, 2020 09:34
Show Gist options
  • Save maximkrouk/8b283c5e7e9dc5bb7c5653d49fac0528 to your computer and use it in GitHub Desktop.
Save maximkrouk/8b283c5e7e9dc5bb7c5653d49fac0528 to your computer and use it in GitHub Desktop.
import SwiftUI
extension Color {
public init(light: Color, dark: Color) {
self = valueForTheme(light: light, dark: dark)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment