title: How can I initialize a color array that shows color cubes in Swift 3?
body: <p>I found this code part on GitHub and it works really fine, I can even change the color by clicking on the color cube. Also, I could copy the color cube and use anywhere I wanted. I want to know how to initialize this in Swift 3.</p>
  
  <p><a href="https://i.stack.imgur.com/rqEd5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rqEd5.png" alt="color cubes in code"></a></p>
  
  <p>I tried this but couldn't figure it out.</p>
  
  <pre><code>    let cc = [UIColor(red: CGFloat(160/255), green: CGFloat(183.0/255), blue: CGFloat(227.0/255), alpha: 1), UIColor(red: CGFloat(160/255), green: CGFloat(183.0/255), blue: CGFloat(227.0/255), alpha: 1)]
  </code></pre>