title: Using CAGradientLayer for an angle / circle gradient
body: <p>How can I use a <strong>CAGradientLayer</strong> to most efficiently draw a gradient around a circle / with angles?</p>
  
  <p>I made the one underneath with the help of this <a href="https://github.com/paiv/AngleGradientLayer" rel="noreferrer">project</a>. It uses a bitmap context for drawing but a <strong>CAGradientLayer</strong> would be far more efficient. </p>
  
  <p>Unfortunately I could only figure out how to make linear gradients with it.</p>
  
  <p><a href="https://imgur.com/Bz9cVKq" rel="noreferrer"><img src="https://i.imgur.com/Bz9cVKq.png" title="Hosted by imgur.com" /></a></p>