Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Skeletonview | 11,743 | 24 | a month ago | 61 | August 11, 2022 | 47 | mit | Swift | ||
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting | ||||||||||
Granim.js | 5,091 | 42 | 9 | 4 months ago | 10 | November 11, 2018 | 26 | mit | JavaScript | |
Create fluid and interactive gradient animations with this small javascript library. | ||||||||||
Pastel | 3,412 | 34 | 5 months ago | 9 | October 22, 2018 | 20 | mit | Swift | ||
🎨 Gradient animation effect like Instagram | ||||||||||
Finestwebview Android | 2,275 | 2 years ago | 127 | Kotlin | ||||||
Beautiful and customizable Android Activity that shows web pages within an app. | ||||||||||
Kdcircularprogress | 973 | 35 | 2 years ago | 14 | September 22, 2016 | 28 | mit | Swift | ||
A circular progress view with gradients written in Swift | ||||||||||
React Native Shimmer Placeholder | 914 | 23 | 6 | 2 months ago | 44 | September 24, 2021 | 18 | mit | JavaScript | |
Placeholder/ Skeleton of React Native | ||||||||||
Progressroundbutton | 846 | 4 years ago | 4 | apache-2.0 | Java | |||||
A DownloadProgressButton with Animation for Android | ||||||||||
Gradientloadingbar | 767 | 3 | 5 months ago | 32 | May 10, 2022 | 2 | mit | Swift | ||
⌛️A customizable animated gradient loading bar. | ||||||||||
Spark | 672 | 4 years ago | mit | Kotlin | ||||||
🎨 An Android library to create gradient animation like Instagram&Spotify | ||||||||||
Skeleton | 597 | 7 | 2 years ago | 6 | January 08, 2020 | mit | Swift | |||
💀 An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content. |
HPGradientLoading is awesome library for loading activity in iOS application
pod 'HPGradientLoading'
Copy the HPGradientLoading
folder to your project.
var isBlurBackground: Bool
var isBlurLoadingActivity: Bool
var isEnableDismissWhenTap: Bool
var sizeOfLoadingActivity: CGFloat
var fromColor: UIColor
var toColor: UIColor
var durationAnimation: TimeInterval
var blurColorTintActivity: UIColor
var blurColorTintAlphaActivity: CGFloat
var blurRadiusActivity: CGFloat
var cornerRadiusActivity: CGFloat
var gradientLineWidth: CGFloat
var blurColorTintBackground: UIColor
var blurColorTintAlphaBackground: CGFloat
var blurRadiusBackground: CGFloat
var colorTitleLoading: UIColor
var fontTitleLoading: UIFont
var colorTitleProcessing: UIColor
var fontTitleProcessing: UIFont
func showLoading(with title: String? = nil)
func showProcessing(with loadingTitle: String? = nil, percent: CGFloat, duration: TimeInterval = 0.1)
func updateProcessing(with percent: CGFloat, duration: TimeInterval = 0.1)
func dismiss()
Add import HPGradientLoading
in your file
import UIKit
import HPGradientLoading
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
HPGradientLoading.shared.configation.isEnableDismissWhenTap = true
HPGradientLoading.shared.configation.isBlurBackground = true
HPGradientLoading.shared.configation.durationAnimation = 1.0
HPGradientLoading.shared.configation.fontTitleLoading = UIFont.systemFont(ofSize: 20)
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
HPGradientLoading.shared.dismiss()
}
// MARK: - Actions
@IBAction private func showLoadingWithTitle(_ sender: Any) {
HPGradientLoading.shared.showLoading(with: "Loading...")
}
@IBAction private func showLoadingWithEmptyTitle(_ sender: Any) {
HPGradientLoading.shared.showLoading()
}
@IBAction private func showProcessing(_ sender: Any) {
self.percent = 0
HPGradientLoading.shared.showProcessing(with: "Loading...", percent: self.percent, duration: 0.15)
self.timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true, block: { (timer) in
self.percent += 4
self.percent = self.percent > 100 ? 100 : self.percent
HPGradientLoading.shared.updateProcessing(with: self.percent)
if self.percent == 100 {timer.invalidate()}
})
}
}
Swift 5.0
iOS 10.0+
Xcode 10.2+
Forks, patches and other feedback are welcome.
HPGradientLoading is available under the MIT license. See the LICENSE file for more info.