CocoaPods trunk is moving to be read-only. Read more on the blog, there are 7 months to go.

CCPColor 1.0.1

CCPColor 1.0.1

Maintained by Brain.Chu.



CCPColor 1.0.1

  • By
  • coolboy_ccp

CCPColor(swift 5.0, iOS)

Color常用分类

How to use

  • pod 'CCPColor'
  • import CCPColor
  • use UIColor.rgba() to init a rgba color
  • use UIColor.hex() to init a hex color
  • use UIColor().alpha to get a color alpha, or reset a color alpha
  • use UIColor().image(size:) to create an image with current color
  • use UIColor.color() to get a color at the point of an image
  • use [UIColor()].gradient to create an gradientLayer