title: How to curve CGMutablePath?
body: <p>With the following shape:</p>
  
  <p><img src="https://i.stack.imgur.com/UzDYl.png" alt="enter image description here"></p>
  
  <p>I was wondering how do you get it to curve like this:</p>
  
  <p><img src="https://i.stack.imgur.com/JNq9b.png" alt="enter image description here"></p>
  
  <p>Also similarly:</p>
  
  <p><img src="https://i.stack.imgur.com/hbpAf.png" alt="enter image description here"></p>
  
  <p>I'm assuming that the all of the circles / lines are packed into one <code>CGMutablePath</code>, and then some kind of curve, arc, or quad curve, is applied to it, though I'm having trouble coming even close to replicating it. Does anyone know how to do this?</p>