Spring (MengTo/Spring)
Searching Database…
What is this?
Spring is a Swift library for iOS that adds ready-made view animations (shake, pop, swing, flip, slide, fade, zoom and more) you can trigger from code or wire up directly in Storyboard.
Is it a framework or just a UIView helper?
It is a lightweight library, not a full framework: it extends UIView with animation properties and functions you call in code, plus a SpringView class you can attach directly in Storyboard.
How do I add it to my Xcode project?
Drag the Spring folder into your Xcode project (enabling 'Copy items if needed' and 'Create groups'), or install it via CocoaPods.
Does it need a specific Xcode or Swift version?
Yes, this version of Spring requires Xcode 10 and Swift 4.2.
Any known gotchas with the animations?
Animations won't autostart when the view is reached via performSegueWithIdentifier, and not all animation properties (force, duration, damping, velocity, etc.) work together — the README suggests testing combinations in the demo app.
Can I trigger an animation without writing any code?
Yes, there is an Autostart option that plays the animation automatically, and an Autohide option that saves you from manually setting layer.alpha = 0 in viewDidLoad().
Can I chain multiple animations together?
Yes, using animateToNext you can run one animation and then kick off another once it finishes, e.g. moving a view and then making it fall.
What animation curves can I use?
Spring supports spring, linear, easeIn, easeOut, and easeInOut curves for its animations.
Can I use Spring in an Objective-C project?
Yes, the README links to a separate tutorial specifically for integrating Spring into existing Objective-C projects.
What are similar projects?
FSCalendar, Eureka, IQKeyboardManager, SVProgressHUD, chameleon, AFNetworking, folding-cell, DZNEmptyDataSet
Which topics is it in?
swift-library, uikit, cocoapods, objective-c, xcode, mobile-development, apple, component-library, swift, ui-components, animation, mobile

