GYGradientView/README.md

46 lines
1.3 KiB
Markdown

# GYGradientView
GYGradientView is a simple to use view that uses the new IBDesignable and IBInspectable features of Xcode to easily configure a view to have a Gradient. You can pick the colors an angle of the gradient.
![](https://github.com/yhondri/GYGradientView/blob/master/Screenshots/screenshot.png?raw=true)
# Features
- Angle gradient selection
- Color of the gradient selection
# Requeriments
- iOS 11.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
- Xcode 9.0+
- Swift 4+
# Installation
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
Once you have your Swift package set up, adding GYGradientView as a dependency is as easy as adding it to the dependencies value of your Package.swift.
**Swift 4:**
```sh
dependencies: [
.package(url: "https://github.com/yhondri/GYGradientView", from: "1.0.0")
]
```
**Manually:**
If you prefer not to use any of the aforementioned dependency managers, you can integrate GYGradientView into your project manually.
Add GYGradientView.swift to your project And that's it!
# Authors
[Guillermo Cique](https://github.com/GuiyeC) - Initial work
Yhondri J. Acosta Novas
# License
GYGradientView is released under the MIT license. See LICENSE for details.