I'm trying to combine several UIBezierPath
drawings.
I have different types of drawings I can make (line, cubic bezier, quadratic beziers), and each of these can be filled or unfilled. I'm selecting the drawing type randomly, and my goal is to make 3 different drawings which are connected at a point.
So where the first, say, line drawing ends, the second path - maybe a cubic bezier — begins. Where that ends, a third, maybe a filled line drawing begins.
I've got a square UIView
that I'm trying to draw this in, and each path should have its own part of the UIView
: the first 1/3rd, the second and the third.
Would I be able to create this with one UIBezierPath
object, or do I need to create 3 different ones? How to make them end and start at the same point? Is there a way to do this with subpaths?