7
Animaciones en iOS Cómo hacer animaciones y transiciones con UIKit y pop Pablo Gómez Basanta [email protected] @neop

iOS Animations using Pop

Embed Size (px)

Citation preview

Page 1: iOS Animations using Pop

Animaciones en iOSCómo hacer animaciones y transiciones con UIKit y pop

Pablo Gómez Basanta [email protected]

@neop

Page 2: iOS Animations using Pop

Frameworks para animación

• UIKit (CAAnimation)

• pop (Facebook)

• UIViewPropertyAnimator (iOS 10)

Page 3: iOS Animations using Pop

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

Page 4: iOS Animations using Pop

pop

• Desarrollado por Facebook para uso en Paper

• POPBasicAnimation, POPDecayAnimation, POPSpringAnimation, POPCustomAnimation

• .pop_add(anim: POPAnimation!, forKey: String!)

Page 5: iOS Animations using Pop

UIViewPropertyAnimator

Page 6: iOS Animations using Pop

Para más información

• https://github.com/facebook/pop

• https://developer.apple.com/videos/play/wwdc2016/216/

Page 7: iOS Animations using Pop

¡Gracias!

Pablo Gómez [email protected]

@neop pablogom