An open API service indexing awesome lists of open source software.

https://github.com/wimansha/gradientanimator

A custom UIView with an ability to animate a linear gradient layer for a given set of colors.
https://github.com/wimansha/gradientanimator

custom-uiview gradient gradient-animation gradient-background ios linear-gradient objective-c

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

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

![iPhone Example](_GIFs/iphone_example.gif)

```
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!

```ruby
pod 'GradientAnimatorView'