title: init(colorLiteralRed:,green:,blue:,alpha:) deprecated in Swift 4
body: <pre><code>let startingColorOfGradient = UIColor(colorLiteralRed: 255/255, green: 
  255/255, blue: 255/255, alpha: 1.0).cgColor
  let endingColorOFGradient = UIColor(colorLiteralRed: 251/255, green: 
  247/255, blue: 234/255, alpha: 1.0).cgColor
  let gradient: CAGradientLayer = CAGradientLayer()
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>'init(colorLiteralRed:green:blue:alpha:)' was obsoleted in Swift 4.0 (Swift._ExpressibleByColorLiteral)</p>
  </blockquote>
  
  <p>How do I use gradient color if <code>init(colorLiteralRed:,green:,blue:,alpha:)</code> is deprecated in Swift 4?</p>