Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tadija/AEConicalGradient
Conical (angular) gradient for iOS written in Swift
https://github.com/tadija/AEConicalGradient
Last synced: 8 days ago
JSON representation
Conical (angular) gradient for iOS written in Swift
- Host: GitHub
- URL: https://github.com/tadija/AEConicalGradient
- Owner: tadija
- License: mit
- Created: 2015-11-08T22:13:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-08T22:20:41.000Z (almost 5 years ago)
- Last Synced: 2024-10-01T09:21:04.131Z (2 months ago)
- Language: Swift
- Homepage:
- Size: 59.6 KB
- Stars: 83
- Watchers: 7
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - AEConicalGradient - Conical (angular) gradient layer written in Swift. (Graphics / Getting Started)
- awesome-gradient - AEConicalGradient - Conical (angular) gradient for iOS. (Swift)
- awesome-ios-star - AEConicalGradient - Conical (angular) gradient layer written in Swift. (Graphics / Getting Started)
- awesome-swift-cn - AEConicalGradient - Conical (angular) gradient in Swift. (Libs / Colors)
README
[![Swift 4.2](https://img.shields.io/badge/Swift-4.2-orange.svg?style=flat)](https://swift.org)
[![Platforms iOS](https://img.shields.io/badge/Platforms-iOS-lightgray.svg?style=flat)](http://www.apple.com)
[![CocoaPods](https://img.shields.io/cocoapods/v/AEConicalGradient.svg?style=flat)](https://cocoapods.org/pods/AEConicalGradient)
[![Carthage](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Swift Package Manager](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)
[![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=flat)](LICENSE)# AEConicalGradient
**Conical (angular) gradient in Swift**> I hope that somebody will find this useful. And nice.
![AEConicalGradient](http://tadija.net/projects/AEConicalGradient/AEConicalGradient.png)
## Usage
**AEConicalGradient** is a [minion](http://tadija.net/public/minion.png) which consists of two objects:
- [ConicalGradientLayer](Sources/ConicalGradientLayer.swift)
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](Sources/ConicalGradientView.swift)
Subclass of `UIView` which uses `ConicalGradientLayer` as the view’s Core Animation layer.
You can configure conical gradient options with `gradient` property.## Installation
- [Swift Package Manager](https://swift.org/package-manager/):
```
.Package(url: "https://github.com/tadija/AEConicalGradient.git", majorVersion: 2)
```- [Carthage](https://github.com/Carthage/Carthage):
```ogdl
github "tadija/AEConicalGradient"
```- [CocoaPods](http://cocoapods.org/):
```ruby
pod 'AEConicalGradient'
```## License
AEConicalGradient is released under the MIT license. See [LICENSE](LICENSE) for details.`done for fun`