Latest 0.1.0
Homepage https://github.com/Rex-121/GradientX
License MIT
Platforms ios 8.0
Authors

Version
Platform

Requirements

iOS 8.0+

Installation

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

pod 'GradientX'

Usage

//MARK: - Label
let label = GradientLabel()

///更改颜色
label.new(colors: [UIColor.red.cgColor, UIColor.black.cgColor, UIColor.white.cgColor])

/// 更改方向
label.new(direction: .vertical)

//MARK: - Button
let button = GradientButton()

///更改颜色
button.new(colors: [UIColor.red.cgColor, UIColor.black.cgColor, UIColor.white.cgColor])

/// 更改方向
button.new(direction: .vertical)

Storyboard

Usage_1

ScreenShots

ScreenShots

Author

Tyrant, [email protected]

Latest podspec

{
    "name": "GradientX",
    "version": "0.1.0",
    "summary": "Gradient Label & Gradient Button",
    "description": "Make a gradient label or button simple",
    "homepage": "https://github.com/Rex-121/GradientX",
    "screenshots": "https://github.com/Rex-121/GradientX/blob/master/screenshots_1.jpg",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Tyrant": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Rex-121/GradientX.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "GradientX/**/*",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This