title: How can I use UIColorFromRGB in Swift?
body: <p>In Objective-C, we use this code to set RGB color codes for views:</p>
  
  <pre><code>#define UIColorFromRGB(rgbValue)        
  [UIColor colorWithRed:((float)((rgbValue &amp; 0xFF0000) &gt;&gt; 16))/255.0 green:((float)((rgbValue &amp; 0xFF00) &gt;&gt; 8))/255.0 blue:((float)(rgbValue &amp; 0xFF))/255.0 alpha:1.0]
  
  view.backgroundColor=UIColorFromRGB(0x209624);
  </code></pre>
  
  <p>How can I use this in Swift?</p>