GYGradientView/README.md

1.3 KiB

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.

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 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:

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 - Initial work

Yhondri J. Acosta Novas

License

GYGradientView is released under the MIT license. See LICENSE for details.