ViewAnimator is an open source Swift library from Marcos Griselli that provides a nice simple way to create complex user interface animations on components that implement the Animatable interface such as UIStackView, UICollectionView, and UITableView.
As the readme states:
ViewAnimator is a library for building complex iOS UIView animations in an easy way. It provides one line animations for any view included the ones which contain other views like UITableView and UICollectionView with its cells or UIStackView with its arrangedSubviews.
This snippet shows some animation code with ViewAnimator showing off the simple syntax and chaining:
let zoomAnimation = AnimationType.zoom(scale: 0.2)
let rotateAnimation = AnimationType.rotate(angle: CGFloat.pi/6)
collectionView.animateViews(animations: [zoomAnimation, rotateAnimation], duration: 0.5)
tableView.animateViews(animations: [fromAnimation, zoomAnimation], duration: 0.5)
This animation shows off a user interface created with ViewAnimator:
You can find ViewAnimator on Github here.
A nice up-to-date Swift based user interface animation library.
Original article: ViewAnimator – Swift Library For Easily Creating Complex iOS User Interface Animations
©2017 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.