Open Source iOS Library Allowing You To Animate Image View Aspect Mode Changes

I’ve mentioned a number of animation libraries, including the Spring library yesterday which supplies many pre-built animations that can be implemented in storyboards or in code.

Here’s an open source library from Vito Zhang called VICMAImageView that allows you to animate changes to an image view content mode.

With VICMAImageView you simply need to create your image view using the VICMAImageView class, and you can then animate content mode changes just like any other UIView animations.

This code snippet from the reamde shows how to animate a content mode change with VICMAImageView:

[UIView animateWithDuration:0.3
                     animations:^{
                         imageView.contentMode = UIViewContentModeScaleAspectFill;
                     }];

VICMAImageView

You can find VICMAImageView on Github here.

A nice way to visualize image aspect mode changes.

Original article: Open Source iOS Library Allowing You To Animate Image View Aspect Mode Changes

©2015 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *