{"id":27136435,"url":"https://github.com/quanghoang0101/hpgradientloading","last_synced_at":"2025-06-23T17:10:18.696Z","repository":{"id":56933861,"uuid":"183398073","full_name":"quanghoang0101/HPGradientLoading","owner":"quanghoang0101","description":"The library for loading activity with cool animation, blur and gradient, easy integrate and custom for iOS application.","archived":false,"fork":false,"pushed_at":"2019-05-07T08:19:10.000Z","size":133,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T02:04:49.890Z","etag":null,"topics":["activity","animation","ios","loading","loading-activity","loading-animations","loading-views","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quanghoang0101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-25T09:08:27.000Z","updated_at":"2020-04-26T06:44:39.000Z","dependencies_parsed_at":"2022-08-21T00:40:25.768Z","dependency_job_id":null,"html_url":"https://github.com/quanghoang0101/HPGradientLoading","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/quanghoang0101/HPGradientLoading","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quanghoang0101%2FHPGradientLoading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quanghoang0101%2FHPGradientLoading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quanghoang0101%2FHPGradientLoading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quanghoang0101%2FHPGradientLoading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quanghoang0101","download_url":"https://codeload.github.com/quanghoang0101/HPGradientLoading/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quanghoang0101%2FHPGradientLoading/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261519089,"owners_count":23171228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activity","animation","ios","loading","loading-activity","loading-animations","loading-views","swift"],"created_at":"2025-04-08T02:54:33.740Z","updated_at":"2025-06-23T17:10:13.677Z","avatar_url":"https://github.com/quanghoang0101.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HPGradientLoading\n\n[![Platform](http://img.shields.io/badge/platform-iOS-blue.svg?style=flat\n)](https://developer.apple.com/iphone/index.action)\n[![Language](http://img.shields.io/badge/language-Swift-brightgreen.svg?style=flat\n)](https://developer.apple.com/swift)\n[![Version](https://img.shields.io/cocoapods/v/HPGradientLoading.svg?style=flat)](https://cocoapods.org/pods/HPGradientLoading)\n[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat\n)](http://mit-license.org)\n[![Issues](https://img.shields.io/github/issues/quanghoang0101/HPGradientLoading.svg?style=flat\n)](https://github.com/quanghoang0101/HPGradientLoading/issues?state=open)\n![Build](https://travis-ci.com/quanghoang0101/HPGradientLoading.svg?branch=master)\n[![codecov](https://codecov.io/gh/quanghoang0101/HPGradientLoading/branch/master/graph/badge.svg)](https://codecov.io/gh/quanghoang0101/HPGradientLoading)\n\nHPGradientLoading is awesome library for loading activity in iOS application\n\n![sample](https://media.giphy.com/media/ZCZG1AqYpWG3ajEsjA/giphy.gif)\n\n# Installation\n#### CocoaPods\n```\npod 'HPGradientLoading'\n```\n#### Manually\nCopy the `HPGradientLoading` folder to your project.\n\n## Conguration\n* Enable blur background\n```Swift\nvar isBlurBackground: Bool\n```\n* Enable blur loading activity\n```Swift\nvar isBlurLoadingActivity: Bool\n```\n* Enable dismiss loading when tap\n```Swift\nvar isEnableDismissWhenTap: Bool\n```\n* Size of loading activity\n```Swift\nvar sizeOfLoadingActivity: CGFloat\n```\n* Gradient from color\n```Swift\nvar fromColor: UIColor\n```\n* Gradient to color\n```Swift\nvar toColor: UIColor\n```\n* Duration animation\n```Swift\nvar durationAnimation: TimeInterval\n```\n* Blur color tinr loading activity\n```Swift\nvar blurColorTintActivity: UIColor\n```\n* Blur color tint alpha for loading activity\n```Swift\nvar blurColorTintAlphaActivity: CGFloat\n```\n* Blur radius loading activity\n```Swift\nvar blurRadiusActivity: CGFloat\n```\n* Corner radius for loading activity\n```Swift\nvar cornerRadiusActivity: CGFloat\n```\n* Gradient line width for loading activity\n```Swift \nvar gradientLineWidth: CGFloat\n```\n* Blur color tint for background\n```Swift\nvar blurColorTintBackground: UIColor\n```\n* Blur color tint alpha for background\n```Swift\nvar blurColorTintAlphaBackground: CGFloat\n```\n* Blur radius background\n```Swift\nvar blurRadiusBackground: CGFloat\n```\n* Color for title loading\n```Swift\nvar colorTitleLoading: UIColor\n```\n* Font for title loading\n```Swift\nvar fontTitleLoading: UIFont\n```\n* Color for processing loading\n```Swift\nvar colorTitleProcessing: UIColor\n```\n* Font for title processing\n```Swift\nvar fontTitleProcessing: UIFont\n```\n## Actions\n* Show loading\n```Swift\nfunc showLoading(with title: String? = nil)\n```\n* Show processing\n```Swift\nfunc showProcessing(with loadingTitle: String? = nil, percent: CGFloat, duration: TimeInterval = 0.1)\n```\n* Update processing\n```Swift\nfunc updateProcessing(with percent: CGFloat, duration: TimeInterval = 0.1)\n```\n* Dismiss loading\n```Swift\nfunc dismiss()\n```\n## Usage\n\n### Setup\nAdd `import HPGradientLoading` in your file\n\n```Swift\nimport UIKit\nimport HPGradientLoading\n\nclass ViewController: UIViewController {\n\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        // Do any additional setup after loading the view.\n        HPGradientLoading.shared.configation.isEnableDismissWhenTap = true\n        HPGradientLoading.shared.configation.isBlurBackground = true\n        HPGradientLoading.shared.configation.durationAnimation = 1.0\n        HPGradientLoading.shared.configation.fontTitleLoading = UIFont.systemFont(ofSize: 20)\n\n    }\n\n    override func viewDidAppear(_ animated: Bool) {\n        super.viewDidAppear(animated)\n        HPGradientLoading.shared.dismiss()\n    }\n\n\n    // MARK: - Actions\n    @IBAction private func showLoadingWithTitle(_ sender: Any) {\n        HPGradientLoading.shared.showLoading(with: \"Loading...\")\n    }\n\n    @IBAction private func showLoadingWithEmptyTitle(_ sender: Any) {\n        HPGradientLoading.shared.showLoading()\n    }\n\n    @IBAction private func showProcessing(_ sender: Any) {\n        self.percent = 0\n        HPGradientLoading.shared.showProcessing(with: \"Loading...\", percent: self.percent, duration: 0.15)\n        self.timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true, block: { (timer) in\n            self.percent += 4\n            self.percent = self.percent \u003e 100 ? 100 : self.percent\n            HPGradientLoading.shared.updateProcessing(with: self.percent)\n            if self.percent == 100 {timer.invalidate()}\n        })\n    }\n}\n```\n## Requirements\nSwift 5.0\n\niOS 10.0+\n\nXcode 10.2+\n\n## Contributing\nForks, patches and other feedback are welcome.\n\n## Creator\n### HPGradientLoading\n[Quang Hoang](https://github.com/quanghoang0101) \n\n[Blog](https://medium.com/@phanquanghoang)\n\n## License\nHPGradientLoading is available under the MIT license. See the [LICENSE](./LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquanghoang0101%2Fhpgradientloading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquanghoang0101%2Fhpgradientloading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquanghoang0101%2Fhpgradientloading/lists"}