UIBezierPath Multiple Line Colors

The stroke/fill colors only affect the -stroke command. They don’t affect the -appendPath: command. Paths don’t contain per-segment color information.

If you need a multi-colored line you’re going to need to stroke each color separately.

Leave a Comment