Aug 28, 2017 · 1 min read
Thanks! If you want to change the starting angle you can use a transform on the gradient layer. For example, to rotate by 90 degrees:
let angle: CGFloat = CGFloat(90.0 / 180.0 * Double.pi)
let t = CATransform3DMakeRotation(angle, 0, 0, 1)
gradientLayer.transform = t