title: UIBezierPath from image
body: <p>I have several png files that look similar to this this:</p>
  
  <p><img src="https://i.stack.imgur.com/veKY8.png" alt="enter image description here"></p>
  
  <p>Everything is transparent but the black path. What I am trying to do is create a UIBezierPath from the non transparent part. </p>
  
  <p>Edit:
  So I was thinking what about creating a mask with the png then from the mask go to a UIBezierPath. Would that work?</p>
  
  <p>Edit Again:
  I found the solution, look at my answer.</p>