SkillAgentSearch skills...

SimpleAnimation

A UIView extension that makes adding basic animations, like fades and bounces, simple.

Install / Use

/learn @keithito/SimpleAnimation
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SimpleAnimation

CI Status Version License Platform Carthage compatible

SimpleAnimation is a UIView extension that makes adding basic animations, like fades and bounces, simple...

view.bounceIn(from: .left)
<img src="screenshots/bounceIn.gif" width="240" height="209">

...with sensible defaults...

view.popIn()
<img src="screenshots/popIn.gif" width="240" height="212">

...while remaining customizable

view.shake(toward: .top, amount: 0.5, duration: 2, delay: 0.5)
<img src="screenshots/customShake.gif" width="240" height="212">

Installation

CocoaPods

To integrate SimpleAnimation into a project using CocoaPods, add the following to your Podfile:

pod "SimpleAnimation"

Carthage

To integrate SimpleAnimation into a project using Carthage, add the following to your Cartfile:

github "keithito/SimpleAnimation"

Older Xcode Versions

If you are using Xcode 8 to build your project, you need to use version 0.3.2 of SimpleAnimation. You can do so by specifying the version number in your Podfile or Cartfile.

Supported Animations

The following animations are supported so far:

  • fadeIn
  • fadeOut
  • fadeColor
  • slideIn
  • slideOut
  • bounceIn
  • bounceOut
  • popIn
  • popOut
  • hop
  • shake

Please see the example ViewController for more usage examples. To build the example in XCode, open Example/Example.xcodeproj.

License

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

View on GitHub
GitHub Stars79
CategoryDevelopment
Updated12mo ago
Forks16

Languages

Swift

Security Score

92/100

Audited on Apr 7, 2025

No findings