Skip to content

vladaccess/Gentler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gentler

Animation of gradient

Version License Platform

Example

override func viewDidLoad() {
  super.viewDidLoad()
  setUpLbl()
  let gentler = GentlerView()
  gentler.frame = view.bounds
  gentler.animationDuration = 3
  gentler.startGentlePoint = .top
  gentler.endGentlePoint = .bottom
  gentler.setColors([UIColor(red: 156/255, green: 39/255, blue: 176/255, alpha: 1.0),
                   UIColor(red: 255/255, green: 64/255, blue: 129/255, alpha: 1.0),
                   UIColor(red: 123/255, green: 31/255, blue: 162/255, alpha: 1.0),
                   UIColor(red: 32/255, green: 76/255, blue: 255/255, alpha: 1.0),
                   UIColor(red: 32/255, green: 158/255, blue: 255/255, alpha: 1.0),
                   UIColor(red: 90/255, green: 120/255, blue: 127/255, alpha: 1.0),
                   UIColor(red: 58/255, green: 255/255, blue: 217/255, alpha: 1.0)])
  gentler.startAnimate()
  self.view.insertSubview(gentler, at: 0)
}

Requirements

Written in Swift 4. iOS 8.0+ Required

Installation

Gentler is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Gentler'

Author

vladaccess, vladaccess@outlook.com

License

Gentler is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors