vic

VICMAImageView

Content Mode Animatable Image View, change image view's content mode with your animation!

Showing:

Popularity

Downloads/wk

0

GitHub Stars

194

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

0

License

MIT

Categories

Readme

VICMAImageView - Content Mode Animatable Image View

Change image view's content mode with your animation!

demo.gif

Installation

CocoaPods

pod 'VICMAImageView', '~> 1.0'

Usage

Use VICMAImageView like a UIImageView

- (void)viewDidLoad {
    [super viewDidLoad];
    UIImage *image = [UIImage imageNamed:@"1.jpg"];
    VICMAImageView *imageView = [[VICMAImageView alloc] initWithImage:image];
    imageView.frame = CGRectMake(0, 0, 100, 100);
    [self.view addSubview:imageView];
}

Animate contentMode in animation block

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

##License

VICMAImageView is available under the MIT license. See the LICENSE file for more info.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100