Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.
/ Gradient Public archive

A simple wrapper around core animation for simple gradients. This repository is no longer maintained.

License

Notifications You must be signed in to change notification settings

nashysolutions/Gradient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is no longer maintained

This blog post is a great read and I wanted to use the code they talk about there. I suggested they upload the code to the open-source community, but I got no response. So I have taken the code directly from that blog post and uploaded it here, for all to use.

Usage

let colors = [
    UIColor.black.cgColor,
    UIColor.white.cgColor
]

let gradientView = GradientView(colors, .rightLeft)

About

A simple wrapper around core animation for simple gradients. This repository is no longer maintained.

Topics

Resources

License

Stars

Watchers

Forks

Languages