{"id":20756955,"url":"https://github.com/saeid/gdgauge","last_synced_at":"2025-04-28T20:41:08.741Z","repository":{"id":54448536,"uuid":"133088324","full_name":"saeid/GDGauge","owner":"saeid","description":"Easy to use, highly customizable gauge view","archived":false,"fork":false,"pushed_at":"2022-08-07T20:30:21.000Z","size":106,"stargazers_count":83,"open_issues_count":1,"forks_count":19,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-28T10:07:01.824Z","etag":null,"topics":["customizable","gauge","ios","speedtest","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/saeid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-11T21:02:16.000Z","updated_at":"2024-12-15T17:26:29.000Z","dependencies_parsed_at":"2022-08-13T16:00:42.488Z","dependency_job_id":null,"html_url":"https://github.com/saeid/GDGauge","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDGauge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDGauge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDGauge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDGauge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saeid","download_url":"https://codeload.github.com/saeid/GDGauge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251385528,"owners_count":21581233,"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":["customizable","gauge","ios","speedtest","swift"],"created_at":"2024-11-17T09:36:06.511Z","updated_at":"2025-04-28T20:41:08.721Z","avatar_url":"https://github.com/saeid.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GDGauge - Customizable Gauge View\n\n![1](https://user-images.githubusercontent.com/9967486/40322974-4ccd8c1e-5d49-11e8-9adc-8c8569335484.png)\n\n# Requirements\n- Xcode 11+\n- Swift 5\n- iOS 9+\n\n\n# Installation\n\n## Swift Package Manager\n\n```swift\n.package(url: \"https://github.com/saeid/GDGauge.git\", from: \"2.0.0\")\n```\n\n## Cocoapods (Not updated - Latest version \"1.2.1\")\n```ruby\npod 'GDGauge'\n```\n\n# Usage\n\n### Import GDGauge\n```swift\nimport GDGauge\n```\n\n### Create an instance of GDGaugeView\n```swift\nvar gaugeView = GDGaugeView(frame: view.bounds)\n```\n\n### Setup, customize and build the view\n```swift \n        gaugeView\n            .setupGuage(\n                startDegree: CGFloat,\n                endDegree: CGFloat,\n                sectionGap: CGFloat,\n                minValue: CGFloat,\n                maxValue: CGFloat\n            )\n            .setupContainer(\n                width: CGFloat,\n                color: UIColor,\n                handleColor: UIColor,\n                options: GaugeOptions,\n                indicatorsColor: UIColor,\n                indicatorsValuesColor: UIColor,\n                indicatorsFont: UIFont\n            )\n            .setupUnitTitle(\n                title: String,\n                font: UIFont\n            )\n            .buildGauge()\n```\n\n### To update the handle value\n```swift\ngaugeView.updateValueTo(CGFloat)\n```\n\n### To update colors when a limit is reached\n```swift\ngaugeView.updateColors(\n    containerColor: UIColor,\n    indicatorsColor: UIColor\n)\n```\n\n### To reset to initial colors\n```swift\ngaugeView.resetColors()\n```\n\n## Licence\nGDGauge is available under the MIT license. See the [LICENSE.txt](https://github.com/saeid/GDGauge/blob/master/LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeid%2Fgdgauge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaeid%2Fgdgauge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeid%2Fgdgauge/lists"}