Skip to content

Rex-121/GradientX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 5, 2019
44cf63c · May 5, 2019

History

10 Commits
May 5, 2019
May 5, 2019
May 5, 2019
May 5, 2019
May 5, 2019
May 5, 2019
May 5, 2019
May 5, 2019
May 5, 2019

Repository files navigation

GradientX

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, rex_wzc@163.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published