All Projects β†’ iLeafSolutionsPvtLtd β†’ GradientAnimator

iLeafSolutionsPvtLtd / GradientAnimator

Licence: MIT license
GradientAnimator helps to fill your view with vibrant gradient theme colours and animates them to give a stunning view to your application design

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to GradientAnimator

PastelXamarinIos
πŸŒ’ Gradient animations on Xamarin-iOS
Stars: ✭ 17 (-75.71%)
Mutual labels:  animations, gradient
Flutter programs
Experiments with Mobile
Stars: ✭ 308 (+340%)
Mutual labels:  animations, gradient
CameraButton
No description or website provided.
Stars: ✭ 31 (-55.71%)
Mutual labels:  animations, swift5
VanGogh
πŸ’₯ Android view animations powered by RxJava 2
Stars: ✭ 95 (+35.71%)
Mutual labels:  animations
swift-starter-kit
Swift Starter Kit with Firebase & Facebook Login Onboarding
Stars: ✭ 105 (+50%)
Mutual labels:  swift5
Pulse
❀️ A heart rate camera pulse detector written in Swift.
Stars: ✭ 53 (-24.29%)
Mutual labels:  swift5
audioStreamDemo
A music player created in swift using AVPlayer to stream audio from server.
Stars: ✭ 33 (-52.86%)
Mutual labels:  swift5
iOSUtilitiesSource
IOS Utilities Library for Swift
Stars: ✭ 46 (-34.29%)
Mutual labels:  swift5
gradient-cli
The command line interface for Gradient - https://gradient.paperspace.com
Stars: ✭ 58 (-17.14%)
Mutual labels:  gradient
IGListKit-AsyncDisplayKit-Example
IGListKit be used with AsyncDisplayKit in Swift
Stars: ✭ 34 (-51.43%)
Mutual labels:  swift5
DailyFeed
iOS client for newsapi.org
Stars: ✭ 128 (+82.86%)
Mutual labels:  swift5
OKKLineMin
OKKLineMin kline for min for learning for iPhone (support Swift5 & the latest Swift & iPhone & iOS 16)(min KηΊΏε›Ύ η”¨δΊŽε­¦δΉ δΊ†θ§£)
Stars: ✭ 23 (-67.14%)
Mutual labels:  swift5
olwind
Wind layers for OpenLayers
Stars: ✭ 22 (-68.57%)
Mutual labels:  gradient
gradient-badge
🍭 Badge generator with color gradient support
Stars: ✭ 47 (-32.86%)
Mutual labels:  gradient
game characters ui
a redesign of a "game_characters_app" using flutter made with ❀️
Stars: ✭ 20 (-71.43%)
Mutual labels:  animations
AnimationBuilder
A simple and easy-to-use wrapper class to deal with iOS animations.
Stars: ✭ 18 (-74.29%)
Mutual labels:  animations
Dynamic.css
πŸš€ Awesome Library of CSS3 animations πŸŽ‰
Stars: ✭ 38 (-45.71%)
Mutual labels:  animations
GPhotos
A wrapper around the Google Photos API.
Stars: ✭ 21 (-70%)
Mutual labels:  swift5
IndicatorView
Configurable view for ViewPager
Stars: ✭ 41 (-41.43%)
Mutual labels:  animations
AnyImageKit
A toolbox for pick/edit/capture photo or video. Written in Swift.
Stars: ✭ 580 (+728.57%)
Mutual labels:  swift5

GradientAnimator

GradientAnimator helps to fill your view with vibrant gradient theme colours and animates them to give a stunning view to your application design

Preview

Installation

Cocoapods installation is available " pod 'GradientAnimator', '~> 1.3.1' "

Compatibility

  • iOS 11.0+
  • Swift 5

Usage

  1. After installing the library import GradientAnimator to your controller

  2. Gradient Animator has predefined Themes "GradientThemes" you can use our themes

let gradientView = GradientAnimator(frame: self.view.frame, theme: GradientThemes.Sunrise, _startPoint: GradientPoints.bottomLeft, _endPoint: GradientPoints.topRight, _animationDuration: 3.0)
  1. You can also set custom UIColor combination of your choice as per order using the following initializer
 let gradientView = GradientAnimator(frame: self.frame, inputColors: [#colorLiteral(red: 0.9195817113, green: 0.04345837981, blue: 0.7682360411, alpha: 1),#colorLiteral(red: 0.1406921148, green: 0.05199617893, blue: 0.8817588687, alpha: 1),#colorLiteral(red: 0.9254902005, green: 0.2352941185, blue: 0.1019607857, alpha: 1),#colorLiteral(red: 0.2745098174, green: 0.4862745106, blue: 0.1411764771, alpha: 1),#colorLiteral(red: 0.9725490196, green: 0.7647058824, blue: 0.8039215686, alpha: 1)], _startPoint: GradientPoints.bottomLeft, _endPoint: GradientPoints.topRight, _animationDuration: 2.0)
  1. GradientPoints - Gradient points are used to know from where yo wish to start your animation and to where to end and begins the next transition start point states from where to begin and endpoint states where to end
enum GradientPoints: Int {
case left
case top
case right
case bottom
case topLeft
case topRight
case bottomLeft
case bottomRight
}
  1. After Initializing the gradient view we need to insert the gradient view at the index zero of subview and after that call the startAnimate() method to begin your animation
let gradientView = GradientAnimator(frame: self.view.frame, theme: GradientThemes.Sunrise, _startPoint: GradientPoints.bottomLeft, _endPoint: GradientPoints.topRight, _animationDuration: 3.0)
self.view.insertSubview(gradientView, at: 0)
gradientView.startAnimate()
  1. For your convenience we wrote an extension of UIView so that you could simply call it on any view you would like the gradient animator to be there use the above code
extension UIView{
func setGradient(){
self.removeGradient()

let gradientView = GradientAnimator(frame: self.frame, theme: GradientThemes.Sunrise, _startPoint: GradientPoints.bottomLeft, _endPoint: GradientPoints.topRight, _animationDuration: 3.0)
gradientView.tag = 007
self.insertSubview(gradientView, at: 0)
gradientView.startAnimate()

}
func removeGradient(){
if let gradView : GradientAnimator = self.subviews.filter({$0.tag == 007}).first as? GradientAnimator{
gradView.removeFromSuperview()
}
}
}

Author

iLeaf Solutions http://www.ileafsolutions.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].