Last active
July 1, 2021 22:46
-
-
Save o-nnerb/2baaa31b2952bb4d0c36db07091c2956 to your computer and use it in GitHub Desktop.
ColorVariant is a provider that implements intermediate properties
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
public struct ColorVariant<Provider: ColorProvider>: ColorProvider { | |
public typealias Color = Provider.Color | |
public var xs: Provider { | |
transformHandler("xs") | |
} | |
public var md: Provider { | |
transformHandler("md") | |
} | |
public var xl: Provider { | |
transformHandler("xl") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment