Get Updates By E-mail 

Article Written By:
Johann Dowa

ViewAnimator – Swift Library For Easily Creating Complex iOS User Interface Animations

  •  
  •  
  •  
  •  
  •  

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 fromAnimation = AnimationType.from(direction: .right, offset: 30.0)
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:

ViewAnimator

You can find ViewAnimator on Github here.

A nice up-to-date Swift based user interface animation library.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments