In order to support GradientLine it was necessary to go all the way down to the core , namely Quartz which is part of CoreGraphics. So currently implementing a routine to support GradientLine Directly.
Tests:
Clickable Button with gradient and 2 states (Video):

Cap and Joint style support:

Radial gradient with Radial gradient line:

Radial gradient:

Multiple gradient stops (with a custom automated stop creator):

Many shapes implemented in the same context:

GradientLine and GradientFill:

GradientStroke:

GradientFill and ColorStroke:

Notable findings:
This link has many cocoa examples (no gradient line)
link
Pretty cool use of gradient in Cocoa:
![]()