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.
- Host: GitHub
- URL: https://github.com/wimansha/gradientanimator
- Owner: wimansha
- Created: 2019-05-02T13:51:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-24T16:24:04.000Z (almost 6 years ago)
- Last Synced: 2025-04-02T14:13:35.194Z (2 months ago)
- Topics: custom-uiview, gradient, gradient-animation, gradient-background, ios, linear-gradient, objective-c
- Language: Objective-C
- Size: 13.3 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
```
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'