Drag and drop the Spring folder to your Xcode project.
* If you don't need all extra stuff, just drop Spring/SpringView.swift to your Xcode project.
In Identity Inspector, connect the UIView to SpringView Class and set the animation properties in Attribute Inspector.
layer.animation = "squeezeDown"
layer.animate()
layer.y = -50
animateToNext() {
layer.animation = "fall"
layer.animateTo()
}
"shake",
"pop",
"morph",
"squeeze",
"wobble",
"swing",
"flipX",
"flipY",
"fall",
"squeezeLeft",
"squeezeRight",
"squeezeDown",
"squeezeUp",
"slideLeft",
"slideRight",
"slideDown",
"slideUp",
"fadeIn",
"fadeOut",
"fadeInLeft",
"fadeInRight",
"fadeInDown",
"fadeInUp",
"zoomIn",
"zoomOut",
"flash",
"spring",
"linear",
"easeIn",
"easeOut",
"easeInOut"
force
duration
delay
damping
velocity
scale
x
y
rotate
* Not all properties work together. Play with the demo app.