/GradientView

Use gradient view easily from interface builder or code.

Primary LanguageSwiftMIT LicenseMIT

GradientView

Use gradient easily from interface builder or code.

CocoaPods

Installation

Use CocoaPods.

pod 'GradientViewInspectable'

Usage

In code

     let view = GradientView(frame: CGRect(x: 0, y: 50, width: 50))
     view.startColor = .blue   
     view.startColor = viewColor.topColor
     view.endColor = viewColor.bottomColor

In Interface builder

Change view class to GradientView and you are good to go.

License

GradientViewInspectable is under MIT. See LICENSE file for more info.