kgn / KGNGradientView

KGNGradientView is a collection UIView subclasses for linear and radial gradients.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KGNGradientView

KGNGradientView is a collection UIView subclasses for linear and radial gradients.

Release License

Build Status Test Coverage Carthage Compatible CocoaPods Version CocoaPods Platforms

Twitter Follow Star

Installing

Carthage

github "kgn/KGNGradientView"

CocoaPods

pod 'KGNGradientView'

Examples

Gradient

Gradient is a struct that encapsulates the start and end colors of the gradient.

VerticalGradientView

A UIView subclass that creates a view with a linear gradient.

let view = VerticalGradientView()
view.gradient = Gradient(startColor: UIColor.redColor(), endColor: UIColor.blueColor())

RadialGradientView

A UIView subclass that creates a view with a radial gradient.

let view = RadialGradientView()
view.gradient = Gradient(startColor: UIColor.redColor(), endColor: UIColor.blueColor())

Progress

  • Tests
  • Travis
  • Badges
  • Carthage
  • CocoaPods
  • Description
  • Documentation
  • AppleTV
  • Prebuilt Frameworks
  • Travis Test Matrix

About

KGNGradientView is a collection UIView subclasses for linear and radial gradients.

License:MIT License


Languages

Language:Swift 89.4%Language:Ruby 5.7%Language:Objective-C 5.0%