This is a Swift 5.0 compatible port of the JavaScript port of Potrace. Potrace allows you to transform a bitmap into a smooth, scalable vector image.
It includes a getBezierPath() function that returns a UIBezierPath for easy rendering on iOS (see included demo app).
func getBezierPath(scale size: Double = 1.0) -> UIBezierPath
Licensed under GPL v2. Ditsributed without any waranty.