Apr 16, 2021
Hey Simon, you will need to specify a CALayer where the gradient is applied to.
Let's say inside your `createCircle`, you've created a segmentLayer of type CAShapeLayer.
Inside `createCircle`, you just gotta use `addGradientLayer(to: segmentLayer)`