Skip to content

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

License

Notifications You must be signed in to change notification settings

Tantalum73/GradientView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages