Created
June 24, 2021 22:42
-
-
Save o-nnerb/42839f19d24581b4e88d57bd5173db28 to your computer and use it in GitHub Desktop.
Implementation of ColorType protocol in UIColor
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
extension UIColor: ColorType { | |
public static var ds: DSColors<UIColor> { | |
DSColors { literal in | |
UIColor( | |
name: literal, | |
in: .module, | |
compatibleWith: nil | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment