title: How to create percentage(%) wise three colour gradient in Swift?
body: <p>I want to create a gradient view with three colours in swift.</p>
  
  <pre><code>linear-gradient(to right, #232c63 10%,#1d6cc1 59%,#33bdd6 100%);
  </code></pre>
  
  <p>How to define colours with <code>%</code>. </p>
  
  <blockquote>
    <p><strong>First Colour with 10 %</strong> </p>
    
    <p><strong>Second Colour with 59 %</strong> </p>
    
    <p><strong>Third Colour with 100 %</strong></p>
  </blockquote>
  
  <p>Example:</p>
  
  <p><a href="https://i.stack.imgur.com/obYzM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/obYzM.png" alt="enter image description here"></a></p>