GradientView

GradientView is a simple gradient view designed for iOS, providing a convenient API around CAGradientLayer. It addresses the challenges of configuring CAGradientLayer, especially for radial gradients, and offers a more accessible interface. Additionally, GradientView wraps CAGradientLayer in a UIView, providing better integration with the iOS environment. It also handles dark and light mode changes, addressing a limitation in CAGradientLayer's use of CGColor, which is not aware of interface style changes.

Linear

Radial

Conic