title: What is the best way to introduce a custom UIColor to a Swift project?
body: <p>I've thought of two types of implementation; which one of them is better in your opinion in terms of performance, readability and maintainability?</p>
  
  <ol>
  <li><p>Create an extension of UIColor like this</p>
  
  <pre><code>extension UIColor {
      class func myColor() -&gt; UIColor {
          return UIColor(red: 128/255, green: 102/255, blue: 0, alpha: 1)
      }
  }
  </code></pre></li>
  <li><p>Create a structure:</p>
  
  <pre><code>struct Colors {
      static let myColor = UIColor(red: 255/255, green: 102/255, blue: 0, alpha: 1)
  }
  </code></pre></li>
  </ol>