Latest 0.2.0
Homepage https://github.com/SteveBarnegren/SBGradientView
License MIT
Platforms ios 9.0
Frameworks UIKit, MapKit
Authors

Version
License
Platform

Convenient UIView wrapper around CAGradientLayer

How to use

let colors = [UIColor.red, UIColor.orange, UIColor.green, UIColor.blue]
let gradientView = GradientView(direction: .fromTop, colors: colors)

IMG

Four directions are supported:

public enum Direction {
        case fromTop
        case fromBottom
        case fromLeft
        case fromRight
    }

Installation

CocoaPods

pod "SBGradientView"

Manual

Copy GradientView.swift in to your project

Author

@SteveBarnegren

License

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

Latest podspec

{
    "name": "SBGradientView",
    "version": "0.2.0",
    "summary": "Convenient UIView wrapper around CAGradientLayer",
    "description": "It's waaaaaayyyyy too much work to make a gradient on iOS, so I made this wrapper to make my life easier",
    "homepage": "https://github.com/SteveBarnegren/SBGradientView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Steve Barnegren": "[email protected]"
    },
    "source": {
        "git": "https://github.com/SteveBarnegren/SBGradientView.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "SBGradientView/**/*.swift",
    "frameworks": [
        "UIKit",
        "MapKit"
    ],
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This