title: How to get RGB components from Color in SwiftUI
body: <p>If I have a SwiftUI <code>Color</code>:</p>
  
  <pre><code>let col: Color = Color(red: 0.5, green: 0.5, blue: 0.5)
  </code></pre>
  
  <p>How do I get the RGB components from <code>col</code>?
  <br>Like this maybe:</p>
  
  <pre><code>print(col.components.red)
  </code></pre>
  
  <p>In UIKit, I could use <code>UIColor.getRed</code> but there doesn't seem to be an equivalent in SwiftUI.</p>