Skip to content

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

License

Notifications You must be signed in to change notification settings

keithito/SimpleAnimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8f7c63e · Nov 14, 2024

History

68 Commits
Dec 22, 2017
Feb 16, 2019
Apr 21, 2016
Nov 14, 2024
Apr 21, 2016
Apr 20, 2016
Apr 19, 2016
Dec 22, 2017
Feb 16, 2019
Dec 22, 2017
Apr 19, 2016
Nov 14, 2024
Dec 22, 2017
Feb 16, 2019

Repository files navigation

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)

...with sensible defaults...

view.popIn()

...while remaining customizable

view.shake(toward: .top, amount: 0.5, duration: 2, delay: 0.5)

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.