Created
March 6, 2020 14:52
-
-
Save aronbudinszky/d3b901b0d3eee0c4818ced7247ed6258 to your computer and use it in GitHub Desktop.
Using Color Assets once we have the necessary extensions. See https://gist.github.com/aronbudinszky/2d84f8a62ec09673f54ae7b4a78617b0
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
// We can get the Color for SwiftUI like so... | |
let color = Color(asset: .appTextColor) | |
// ...or a UIColor (which, unlike UIColor(named:) will be non-optional)... | |
let uiColor = UIColor(asset: .appTextColor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment