{"id":15037396,"url":"https://github.com/d-32/segmentedprogressbar","last_synced_at":"2025-04-06T07:14:54.236Z","repository":{"id":75536451,"uuid":"83909673","full_name":"D-32/SegmentedProgressBar","owner":"D-32","description":"Snapchat / Instagram Stories like progress indicator","archived":false,"fork":false,"pushed_at":"2019-07-02T15:49:03.000Z","size":9241,"stargazers_count":473,"open_issues_count":18,"forks_count":55,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-06T07:14:48.415Z","etag":null,"topics":["cocoa","instagram","ios","snapchat","swift","swift3"],"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/D-32.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-03-04T17:01:22.000Z","updated_at":"2025-04-05T01:37:08.000Z","dependencies_parsed_at":"2023-06-06T20:00:39.464Z","dependency_job_id":null,"html_url":"https://github.com/D-32/SegmentedProgressBar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-32%2FSegmentedProgressBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-32%2FSegmentedProgressBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-32%2FSegmentedProgressBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-32%2FSegmentedProgressBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D-32","download_url":"https://codeload.github.com/D-32/SegmentedProgressBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445681,"owners_count":20939961,"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":["cocoa","instagram","ios","snapchat","swift","swift3"],"created_at":"2024-09-24T20:34:31.708Z","updated_at":"2025-04-06T07:14:54.215Z","avatar_url":"https://github.com/D-32.png","language":"Swift","readme":"\n[![Swift Version][swift-image]][swift-url]\n[![twitter: @dylan36032](http://img.shields.io/badge/twitter-%40dylan36032-blue.svg?style=flat)](https://twitter.com/dylan36032)\n\n# SegmentedProgressBar\nA simple little control that animates segments like Snapchat or Instagram Stories.\n\n![Screenshot](screenshot.png)\n\n## Requirements\n- iOS 8.0+\n- Xcode 8\n\n## Installation\n\nDrag and drop [`SegmentedProgressBar.swift`](https://raw.githubusercontent.com/D-32/SegmentedProgressBar/master/SegmentedProgressBar/SegmentedProgressBar.swift) into your project. That's it.\n\n## Usage\n\n```swift\nlet spb = SegmentedProgressBar(numberOfSegments: 3, duration: 5)\nspb.frame = CGRect(x: 15, y: 15, width: view.frame.width - 30, height: 4)\nview.addSubview(spb)\n\nspb.startAnimation()\n```\n\n## Additional Stuff\nDelegate:\n\n```swift\nspb.delegate = self // has to conform to SegmentedProgressBarDelegate\n\nfunc segmentedProgressBarChangedIndex(index: Int) {\n}\n\nfunc segmentedProgressBarFinished() {\n}\n```\n\nStyling:\n\n```swift\nspb.topColor = UIColor.white\nspb.bottomColor = UIColor.white.withAlphaComponent(0.25)\nspb.padding = 2\n```\n\nPausing / Resuming\n\n```swift\nspb.isPaused = true\nspb.isPaused = false\n```\n\nSkip / Rewind\n\n```swift\nspb.skip()\nspb.rewind()\n```\n\n[swift-image]:https://img.shields.io/badge/swift-3.0-orange.svg\n[swift-url]: https://swift.org/","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-32%2Fsegmentedprogressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd-32%2Fsegmentedprogressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-32%2Fsegmentedprogressbar/lists"}