Note: The results below apply to older versions of iOS, but when testing on iOS 13 the stepping doesn't occur. I don't know for which version of iOS the stepping was removed.
When using CAGradientLayer
, as opposed to CGGradient
, the gradient is not smooth, but has noticeable stepping to it. See :
To get more attractive results it is better to use CGGradient
.