Skip to content

GradientAnimationView is a simple way to create gradient effect with sliding animation.

License

Notifications You must be signed in to change notification settings

komaji/GradientAnimationView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GradientAnimationView

Language Platform Carthage compatible License

GradientAnimationView is a simple way to create gradient effect with sliding animation.

demo.gif

Usage

let gradientAnimationView = GradientAnimationView()

// These are options
gradientAnimationView.cornerRadius = 5.0
gradientAnimationView.sideColor = .gray
gradientAnimationView.centerColor = .lightGray
gradientAnimationView.animationDuration = 1.2
gradientAnimationView.waitingDuration = 0.6

view.addSubview(gradientAnimationView)

Requirements

  • iOS 11.0
  • Xcode 9.2
  • Swift 4.0

Installation

Add this to your Cartfile:

github "komaji/GradientAnimationView"

Then, run the following command:

$ carthage update

License

MIT

About

GradientAnimationView is a simple way to create gradient effect with sliding animation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published