I have this function, which is called in viewDidLoad. Unfortunately, no matter what values I enter for the gradient start and end point, the gradient is always the same.
private func configure(progressRing: ALProgressRing, startColor: UIColor, endColor: UIColor) { progressRing.startColor = startColor progressRing.endColor = endColor progressRing.duration = 2 progressRing.timingFunction = .easeIn progressRing.lineWidth = 10 progressRing.startGradientPoint = .init(x: 0, y: 0.5) progressRing.endGradientPoint = .init(x: 1, y: 0.5) }
Please tell me if I'm making a mistake, or can you do an update?
I have this function, which is called in viewDidLoad. Unfortunately, no matter what values I enter for the gradient start and end point, the gradient is always the same.
private func configure(progressRing: ALProgressRing, startColor: UIColor, endColor: UIColor) { progressRing.startColor = startColor progressRing.endColor = endColor progressRing.duration = 2 progressRing.timingFunction = .easeIn progressRing.lineWidth = 10 progressRing.startGradientPoint = .init(x: 0, y: 0.5) progressRing.endGradientPoint = .init(x: 1, y: 0.5) }Please tell me if I'm making a mistake, or can you do an update?