Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 919 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 919 Bytes

GradientAnimator

A custom UIView with an ability to animate a linear gradient layer for a given set of colors.

iPhone Example

GradientAnimatorView *gradientView = [[GradientAnimatorView alloc] initWithColors:@[
                                                                          [UIColor redColor],
                                                                          [UIColor greenColor],
                                                                          [UIColor blueColor]
                                                                        ]];
                                                                        
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [gradientView startAnimation];
}

Installation

Just add GradientAnimatorView to your Podfile and install. Done!

pod 'GradientAnimatorView'