Upload
nscoder-mexico
View
156
Download
0
Embed Size (px)
Citation preview
Animaciones en iOSCómo hacer animaciones y transiciones con UIKit y pop
Pablo Gómez Basanta [email protected]
@neop
Frameworks para animación
• UIKit (CAAnimation)
• pop (Facebook)
• UIViewPropertyAnimator (iOS 10)
UIKit• UIView.animate(withDuration: TimeInterval, animations:() -> Void, completion:((Bool) -> Void)?)
• UIView.transition(with: UIView, duration: TimeInterval, options: UIViewAnimationOptions, animations:(() -> Void)?, completion:((Bool) -> Void)?)
• UIViewControllerAnimatedTransitioning, UIViewControllerInteractiveTransitioning, etc
• UIViewAnimationOptions: curveEaseIn, curveEaseOut, curveLinear
pop
• Desarrollado por Facebook para uso en Paper
• POPBasicAnimation, POPDecayAnimation, POPSpringAnimation, POPCustomAnimation
• .pop_add(anim: POPAnimation!, forKey: String!)
UIViewPropertyAnimator
Para más información
• https://github.com/facebook/pop
• https://developer.apple.com/videos/play/wwdc2016/216/