I hope that somebody will find this useful. And nice.
Usage
AEConicalGradient is a minion which consists of two objects:
ConicalGradientLayer Subclass of CALayer which performs drawing of conical gradient. You can set colors, locations, start/end angle for the gradient.
If no colors are set, default colors will be used. If no locations are set, colors will be equally distributed.
ConicalGradientView Subclass of UIView which uses ConicalGradientLayer as the view’s Core Animation layer.
You can configure conical gradient options with gradient property.
AEConicalGradient
Conical (angular) gradient in Swift
Usage
AEConicalGradient is a minion which consists of two objects:
ConicalGradientLayer
Subclass of
CALayer
which performs drawing of conical gradient. You can set colors, locations, start/end angle for the gradient. If no colors are set, default colors will be used. If no locations are set, colors will be equally distributed.ConicalGradientView
Subclass of
UIView
which usesConicalGradientLayer
as the view’s Core Animation layer. You can configure conical gradient options withgradient
property.Installation
Swift Package Manager:
Carthage:
CocoaPods:
License
AEConicalGradient is released under the MIT license. See LICENSE for details.
done for fun