Skip to content

Instantly share code, notes, and snippets.

@aronbudinszky
Created March 6, 2020 14:52
Show Gist options
  • Save aronbudinszky/d3b901b0d3eee0c4818ced7247ed6258 to your computer and use it in GitHub Desktop.
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
// 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