Skip to content

jakubknejzlik/GNGradientView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GNGradientView

[![CI Status](http://img.shields.io/travis/Jakub Knejzlik/GNGradientView.svg?style=flat)](https://travis-ci.org/Jakub Knejzlik/GNGradientView) Version License Platform

Installation

GNGradientView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GNGradientView"

Usage

You can use gradient view with Interface Builder (IBDesignable/IBInspectable support). Or with UIView extension:

view.gradientView_setMaskDirection(.vertical)
view.gradientView_setMaskAlphaChannels([1, 0]) // you can specify any transition eg. [0.8, 1, 0.5, 0, 1]

Author

Jakub Knejzlik, jakub.knejzlik@gmail.com

License

GNGradientView is available under the MIT license. See the LICENSE file for more info.