title: How can we use Assets Catalog Color Sets?
body: <p>I usually use custom UIColors on iOS using extensions with Swift, but now with iOS 11/ Xcode 9 we can create Colors Sets. How can we use them?</p>
  
  <p><strong>Update - Tip</strong></p>
  
  <p>As @Cœur says we can drag&amp;drop de color, and use it like a UIColor object and a possible solution could be use it as a extension:</p>
  
  <p><a href="https://i.stack.imgur.com/2bJpe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2bJpe.png" alt="UIColor as an extension"></a> </p>
  
  <p>Or as a constant:</p>
  
  <p><a href="https://i.stack.imgur.com/3cpV9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3cpV9.png" alt="UIColor as a constant"></a></p>
  
  <p>Now I wanna know if we can access them like an UIImage access to an Asset Image or not, like:</p>
  
  <pre><code>UIImage(named: "image-name") -&gt; UIColor(named: "color-name")
  </code></pre>