{"id":2702,"url":"https://github.com/keygx/GradientCircularProgress","last_synced_at":"2025-08-03T00:32:27.637Z","repository":{"id":47259561,"uuid":"37773517","full_name":"keygx/GradientCircularProgress","owner":"keygx","description":"Customizable progress indicator library in Swift","archived":false,"fork":false,"pushed_at":"2021-08-26T12:08:20.000Z","size":611,"stargazers_count":542,"open_issues_count":10,"forks_count":84,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-08-16T04:31:30.360Z","etag":null,"topics":["carthage","cocoapods","customizable","ios","progress-circle","swift","ui","xcode"],"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/keygx.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":"2015-06-20T14:58:25.000Z","updated_at":"2024-07-23T15:15:56.000Z","dependencies_parsed_at":"2022-07-25T22:47:44.642Z","dependency_job_id":null,"html_url":"https://github.com/keygx/GradientCircularProgress","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygx%2FGradientCircularProgress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygx%2FGradientCircularProgress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygx%2FGradientCircularProgress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygx%2FGradientCircularProgress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keygx","download_url":"https://codeload.github.com/keygx/GradientCircularProgress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510776,"owners_count":17931761,"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":["carthage","cocoapods","customizable","ios","progress-circle","swift","ui","xcode"],"created_at":"2024-01-05T20:16:20.570Z","updated_at":"2024-12-06T18:30:42.533Z","avatar_url":"https://github.com/keygx.png","language":"Swift","readme":"# Gradient Circular Progress\n\nCustomizable progress indicator library in Swift\n\n## Requirements\n- Swift 5.1\n- iOS 8.0 or later\n\n## Screen Shots\n\n- Preset style: [BlueDarkStyle.swift](https://github.com/keygx/GradientCircularProgress/blob/master/Source/BlueDarkStyle.swift)\n\n![](images/scr_BlueDarkStyle_01.png)  ![](images/scr_BlueDarkStyle_02.png)\n\n- All preset styles\n\n![](images/styles_01.png) \n![](images/styles_02.png) \n\n- Example Use AddSubView\n\n![](images/scr_AddSubViewEx_01.png)  ![](images/scr_AddSubViewEx_02.png)\n\n## Installation\n\n### Carthage\n\n```Cartfile\ngithub \"keygx/GradientCircularProgress\"\n```\n\n### CocoaPods\n\n```PodFile\npod 'GradientCircularProgress', :git =\u003e 'https://github.com/keygx/GradientCircularProgress'\n```\n\n### Swift versions support\n\n- Swift 5.1, tag \"swift5.1\"\n- Swift 5, tag \"swift5\"\n- Swift 4.2, tag \"swift4.2\"\n- Swift 4.1, tag \"swift4.1\"\n- Swift 4.0, tag \"swift4.0\"\n\n\n## Style Settings\n\nPlease make your original styles\n\n![](images/properties.png)\n\n- Define custom style structs that implements the StyleProperty Protocol\n\n[MyStyle.swift](https://github.com/keygx/GradientCircularProgress/blob/master/Sample/MyStyle.swift)\n\n```swift\nimport GradientCircularProgress\n\npublic struct MyStyle : StyleProperty {\n    /*** style properties **********************************************************************************/\n    \n    // Progress Size\n    public var progressSize: CGFloat = 200\n    \n    // Gradient Circular\n    public var arcLineWidth: CGFloat = 18.0\n    public var startArcColor: UIColor = UIColor.clear()\n    public var endArcColor: UIColor = UIColor.orange()\n    \n    // Base Circular\n    public var baseLineWidth: CGFloat? = 19.0\n    public var baseArcColor: UIColor? = UIColor.darkGray()\n    \n    // Ratio\n    public var ratioLabelFont: UIFont? = UIFont(name: \"Verdana-Bold\", size: 16.0)\n    public var ratioLabelFontColor: UIColor? = UIColor.white()\n    \n    // Message\n    public var messageLabelFont: UIFont? = UIFont.systemFont(ofSize: 16.0)\n    public var messageLabelFontColor: UIColor? = UIColor.white()\n    \n    // Background\n    public var backgroundStyle: BackgroundStyles = .dark\n    \n    // Dismiss\n    public var dismissTimeInterval: Double? = 0.0 // 'nil' for default setting.\n    \n    /*** style properties **********************************************************************************/\n    \n    public init() {}\n}\n\n```\n\n![](images/scr_MyStyle.png)\n\n## Usage\n```swift\nimport GradientCircularProgress\n```\n### Basic\n#### UIWindow\n```swift\nlet progress = GradientCircularProgress()\n\nprogress.show(message: \"Loading...\", MyStyle())\n\nprogress.dismiss()\n```\n#### addSubView\n```swift\nlet progress = GradientCircularProgress()\n\nlet progressView = progress.show(frame: rect, message: \"Loading...\", style: MyStyle())\nview.addSubview(progressView!)\n\nprogress.dismiss(progress: progressView!)\n```\n\n### at Rtio\n#### UIWindow\n```swift\nlet progress = GradientCircularProgress()\n\nlet ratio: CGFloat = CGFloat(totalBytesWritten) / CGFloat(totalBytesExpectedToWrite)        \nprogress.showAtRatio(style: MyStyle())\n\nprogress.updateRatio(ratio)\n\nprogress.dismiss()\n```\n#### addSubView\n```swift\nlet progress = GradientCircularProgress()\n\nlet progressView = progress.showAtRatio(frame: rect, display: true, style: MyStyle())\nview.addSubview(progressView!)\n\nprogress.updateRatio(ratio)\n\nprogress.dismiss(progress: progressView!)\n```\n\n### Update Message\n#### UIWindow\n```swift\nlet progress = GradientCircularProgress()\n\nprogress.show(message: \"Download\\n0 / 4\", MyStyle())\n\nprogress.updateMessage(message: \"Download\\n1 / 4\")\nprogress.updateMessage(message: \"Download\\n2 / 4\")\nprogress.updateMessage(message: \"Download\\n3 / 4\")\nprogress.updateMessage(message: \"Download\\n4 / 4\")\nprogress.updateMessage(message: \"Completed!\")\n\nprogress.dismiss()\n```\n#### addSubView\n```swift\nlet progress = GradientCircularProgress()\n\nlet progressView = progress.show(frame: rect, message: \"Download\\n0 / 4\", style: MyStyle())\nview.addSubview(progressView!)\n\nprogress.updateMessage(message: \"Download\\n1 / 4\")\nprogress.updateMessage(message: \"Download\\n2 / 4\")\nprogress.updateMessage(message: \"Download\\n3 / 4\")\nprogress.updateMessage(message: \"Download\\n4 / 4\")\nprogress.updateMessage(message: \"Completed!\")\n\nprogress.dismiss(progress: progressView!)\n```\n\n## API\n### Use UIWindow\n```swift\npublic func showAtRatio(display: Bool = true, style: StyleProperty = Style())\n\npublic func show(style: StyleProperty = Style())\n\npublic func show(message: String, style: StyleProperty = Style())\n\npublic func dismiss()\n\npublic func dismiss(_ completionHandler: () -\u003e Void) -\u003e ()\n```\n\n### Use addSubView\n```swift\npublic func showAtRatio(frame: CGRect, display: Bool = true, style: StyleProperty = Style()) -\u003e UIView?\n\npublic func show(frame: CGRect, style: StyleProperty = Style()) -\u003e UIView?\n\npublic func show(frame: CGRect, message: String, style: StyleProperty = Style()) -\u003e UIView?\n\npublic func dismiss(progress view: UIView)\n\npublic func dismiss(progress view: UIView, completionHandler: () -\u003e Void) -\u003e ()\n```\n\n### Common\n```swift\npublic func updateMessage(message message: String)\n\npublic func updateRatio(_ ratio: CGFloat)\n```\n\n## License\n\nGradient Circular Progress is released under the MIT license. See LICENSE for details.\n\n## Author\n\nYukihiko Kagiyama (keygx) \u003chttps://twitter.com/keygx\u003e\n\n","funding_links":[],"categories":["UI","Progress","Swift","OOM-Leaks-Crash"],"sub_categories":["ProgressView","Other free courses","WebView-ProgressBar"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeygx%2FGradientCircularProgress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeygx%2FGradientCircularProgress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeygx%2FGradientCircularProgress/lists"}