Skip to content

wimansha/GradientAnimator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9dbd17c · Aug 24, 2019

History

20 Commits
Aug 24, 2019
Aug 24, 2019
Aug 24, 2019
Aug 24, 2019
Aug 24, 2019

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'

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published