Skip to content

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

Notifications You must be signed in to change notification settings

wimansha/GradientAnimator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'