Skip to content

cecetaca/CZKRejectAnimation

Repository files navigation

CZKRejectAnimation

language

A very simple animation that can be applied to a UIView object. Normally used to reject information entered by the user in a text field.

Comes with sample project. Just playing around with Swift.

How to use

  • Drag 'CZKRejectAnimation.swift' to your Xcode project.
  • Let the magic happen (?)

Just init and use.

let reject = CZKRejectAnimationSwift()

//You can use the default values
reject.addDefaultRejectAnimation(yourUIViewSubclass)

//You can customize color and repetitions too
reject.addRejectAnimation(yourUIViewSubclass, repeatCount: 6, backgroundColor: .redColor(), tintColor: .redColor())

As you can see, it's a very simple thing. I was just testing around and decided to commit. :-)

License

MIT

About

A simple Swift UIView rejection animation for testing purposes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages