Latest | 2.1.1 |
---|---|
Homepage | https://github.com/tadija/AEConicalGradient |
License | MIT |
Platforms | ios 9.0 |
Authors |
Conical (angular) gradient in Swift
I hope that somebody will find this useful. And nice.
Usage
AEConicalGradient is a minion which consists of two objects:
-
ConicalGradientLayer
Subclass ofCALayer
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 ofUIView
which usesConicalGradientLayer
as the view’s Core Animation layer.
You can configure conical gradient options withgradient
property.
Installation
-
.Package(url: "https://github.com/tadija/AEConicalGradient.git", majorVersion: 2)
-
github "tadija/AEConicalGradient"
-
pod 'AEConicalGradient'
License
AEConicalGradient is released under the MIT license. See LICENSE for details.
done for fun
Latest podspec
{ "name": "AEConicalGradient", "version": "2.1.1", "license": { "type": "MIT", "file": "LICENSE" }, "summary": "Conical (angular) gradient in Swift", "source": { "git": "https://github.com/tadija/AEConicalGradient.git", "tag": "2.1.1" }, "source_files": "Sources/AEConicalGradient/*.swift", "swift_version": "4.2", "platforms": { "ios": "9.0" }, "homepage": "https://github.com/tadija/AEConicalGradient", "authors": { "tadija": "[email protected]" }, "social_media_url": "http://twitter.com/tadija" }
Tue, 02 Oct 2018 07:00:22 +0000