Latest 0.0.1
Homepage https://github.com/ShengHuaWu/SHGradientColorView
License MIT
Platforms ios 8.0, requires ARC
Authors

Create a custom view and draw a gradient color between two colors.

Screenshots

Horizontal (from yellow to blue)
horizontal

Vertical (from yellow to blue)
vertical

Integration

CocoaPods (iOS 8+)

You can use CocoaPods to install SHGradientColorView by adding it into your Podfile.

use_framework!

pod "SHGradientColorView"
  • Remember to add _useframework! in your Podfile.

It’s necessary to add the framework in your project, after installing.
addLibrary

The last step is to import the framework in your code.
Import

Latest podspec

{
    "name": "SHGradientColorView",
    "version": "0.0.1",
    "summary": "A gradient color view.",
    "description": "A custom view and draw a gradient color between two colors.",
    "homepage": "https://github.com/ShengHuaWu/SHGradientColorView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ShengHua Wu": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ShengHuaWu/SHGradientColorView.git",
        "tag": "0.0.1"
    },
    "source_files": "SHGradientColorView/Classes/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This