Latest 0.2.0
Homepage https://github.com/buhikon/JLGradientViews
License MIT
Platforms ios 8.0
Authors

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

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "JLGradientViews"

Usage

1. open Storyboard or xib in Interface Builder.
2. add a view.

JLGradientViews

3. change the name of the class.

JLGradientViews

4. set gradient colors and points.
  • point value should be in the range of 0.0 ~ 1.0.
  • e.g. (0,0) means left-top corner. (1,1) means right-bottom corner.

JLGradientViews

5. if you are so lazy to set a start point and a end point to the every views, JLVerticalGradientView and JLHorizontalGradientView are also available for you. :D

JLGradientViews
JLGradientViews

6. If you are a code lover, it’s important to call updateColor or updatePoint to reflect data on the view.
JLHorizontalGradientView *gradientView = [[JLHorizontalGradientView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
gradientView.leftColor = [UIColor whiteColor];
gradientView.rightColor = [UIColor blackColor];
[gradientView updateColor];
[self.view addSubview:gradientView];
7. Enjoy and be happy!

Author

Joey Lee

License

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

Latest podspec

{
    "name": "JLGradientViews",
    "version": "0.2.0",
    "summary": "A series of gradient views which can be simply added in IB.",
    "description": "A series of gradient views which can be simply added in IB. Do everything on IB!",
    "homepage": "https://github.com/buhikon/JLGradientViews",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Joey Lee": "[email protected]"
    },
    "source": {
        "git": "https://github.com/buhikon/JLGradientViews.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "JLGradientViews/Classes/**/*"
}

Pin It on Pinterest

Share This