Tantalum73 / GradientView

A UIView that shows a linear gradient. Can be used in InterfaceBuilder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GradientView

A UIView that shows a linear gradient. Can be used in InterfaceBuilder.

![Screenshot of InterfaceBuilder showing the GradientView](SampleScreenshot.png?raw=true "Overlay Transition Screencast" = 200px)

##Usage

  1. Import GradientView.swift into you project.

  2. Place a UIView in the InterfacBuilder and assign its class to GradientView.

  3. There is no step three.

If you prefer writing you interface in code, don't be afraid to do so since the GradientView also works fine using GradientView(frame: CGRect)

##Customization

Of course, you can adjust the colors of the gradient. In addition to that, feel free to experiment with startX, startY, endX and endY to specify parameters of the gradient.

##Related## Please also take a look at my other projects, like TTITransition. Also check out my app TourTime, the app that measures the time you need to get from one location to another without draining your battery.

In addition to that, I am writing my (little) blog here.

About

A UIView that shows a linear gradient. Can be used in InterfaceBuilder.

License:MIT License


Languages

Language:Swift 100.0%