Correspondence when the transmission gradation of CAGradientLayer becomes muddy.
- It contains the playground for validation in Swift.
Transparent gradient is applied to the playground's CAGradientLayer in two ways.
When creating transparency gradients using
CAGradientLayer, color gradients are used before and after transparency, and defining with
withAlphaComponent will result in beautiful gradations.