Skip to content

Latest commit

 

History

History
90 lines (62 loc) · 2.23 KB

README.md

File metadata and controls

90 lines (62 loc) · 2.23 KB

SimpleAnimation

CI Status Version License Platform Carthage compatible

Latest versions:

  • Swift 3: 0.3.0
  • Swift 2: 0.2.0

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)

SimpleAnimation is written in Swift 3, but older versions can be used with Swift 2.

Installation

CocoaPods

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

pod "SimpleAnimation"

For Swift 2.2 or 2.3, use:

pod "SimpleAnimation", "~>0.2.0"

Carthage

SimpleAnimation is available through Carthage. To install it, add the following to your Cartfile:

github "keithito/SimpleAnimation"

Supported Animations

The following animations are supported so far:

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

Please see the example ViewController for more usage examples. You can launch the example in Xcode with:

cd Example
pod install
open SimpleAnimation.xcworkspace

License

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