Skip to content

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

License

Notifications You must be signed in to change notification settings

kgn/KGNGradientView

Repository files navigation

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