{"id":13995200,"url":"https://github.com/chenyun122/StepIndicator","last_synced_at":"2025-07-22T21:32:21.372Z","repository":{"id":46878844,"uuid":"104207465","full_name":"chenyun122/StepIndicator","owner":"chenyun122","description":"StepIndicator is an iOS library that indicates steps in an animated way.","archived":false,"fork":false,"pushed_at":"2021-07-19T09:09:28.000Z","size":5982,"stargazers_count":356,"open_issues_count":19,"forks_count":67,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-25T10:43:40.102Z","etag":null,"topics":["animation","bu-zhou","calayer","indicator","progress","step","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/chenyun122.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":"2017-09-20T11:35:12.000Z","updated_at":"2024-04-08T04:28:21.000Z","dependencies_parsed_at":"2022-07-26T16:02:31.004Z","dependency_job_id":null,"html_url":"https://github.com/chenyun122/StepIndicator","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/chenyun122%2FStepIndicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenyun122%2FStepIndicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenyun122%2FStepIndicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenyun122%2FStepIndicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenyun122","download_url":"https://codeload.github.com/chenyun122/StepIndicator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177814,"owners_count":17743171,"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":["animation","bu-zhou","calayer","indicator","progress","step","swift"],"created_at":"2024-08-09T14:03:18.032Z","updated_at":"2024-11-29T17:31:11.729Z","avatar_url":"https://github.com/chenyun122.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# StepIndicator \n\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/StepIndicator.svg)](https://img.shields.io/cocoapods/v/StepIndicator.svg)\n[![Platform](https://img.shields.io/cocoapods/p/StepIndicator.svg?style=flat)](http://cocoadocs.org/docsets/StepIndicator)\n\n[简体中文](https://github.com/chenyun122/StepIndicator/blob/master/README_CN.md)  \n\nStepIndicator is an iOS library that indicates steps in an animated way.   \nSwfit 5 is supported.  \nThe idea and design are derived from the awesome [Android version](https://github.com/badoualy/stepper-indicator).  \n\n\u003cp align=\"center\" \u003e\n\u003cimg src=\"https://raw.githubusercontent.com/chenyun122/StepIndicator/master/Screenshots/StepIndicator.gif\" alt=\"StepIndicator\" title=\"StepIndicator\" width=\"35%\" height=\"35%\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\" \u003e\nNumbers supported:\u003cbr/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/chenyun122/StepIndicator/master/Screenshots/Screenshot_numbers.png\" alt=\"StepIndicator Numbers\" title=\"StepIndicator Numbers\" width=\"35%\" height=\"35%\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\" \u003e\nMore directions supported(05/16/2018):\u003cbr/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/chenyun122/StepIndicator/master/Screenshots/RTL_Vertical.png\" alt=\"StepIndicator Directions\" title=\"StepIndicator Directions\" width=\"38%\" height=\"38%\"/\u003e\n\u003c/p\u003e\n\n## Installation\n###  CocoaPods\nTo integrate StepIndicator into your Xcode project using CocoaPods, specify it in your `Podfile`:\n```ruby\nplatform :ios, '8.0'\nuse_frameworks!\n\ntarget 'YourProjectName' do\n   pod 'StepIndicator', '~\u003e 1.0.8'\nend\n```\nAnd then remember to `import StepIndicator` module before using it.\n\n###  Manually\nYou could directly copy and add the folder `StepIndicator` which contains 'StepIndicatorView.swift' file to your project.   \n\n\n## Usage\nYou could use `StepIndicatorView` like you use `UIView`, create and layout it programmatically, or get everything done with Storyboard and XIB. Additionally, clone this [Demo](https://github.com/chenyun122/StepIndicator) project to find out how easy it is working. It also provides a way to cooperate with UIScrollView.\n### Programmatically\n```swift\n    //......\n    let stepIndicatorView = StepIndicatorView()\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        \n        self.stepIndicatorView.frame = CGRect(x: 0, y: 50, width: 280, height: 100)\n        self.view.addSubview(self.stepIndicatorView)\n        \n        self.stepIndicatorView.numberOfSteps = 5\n        self.stepIndicatorView.currentStep = 0\n    }\n    //......\n```\n\n### Customization (Optional)\nValues of following properties have been set as defaults already. Change them if they are not suitable for you.\n```swift\n    self.stepIndicatorView.circleColor = UIColor(red: 179.0/255.0, green: 189.0/255.0, blue: 194.0/255.0, alpha: 1.0)\n    self.stepIndicatorView.circleTintColor = UIColor(red: 0.0/255.0, green: 180.0/255.0, blue: 124.0/255.0, alpha: 1.0)\n    self.stepIndicatorView.circleStrokeWidth = 3.0\n    self.stepIndicatorView.circleRadius = 10.0\n    self.stepIndicatorView.lineColor = self.stepIndicatorView.circleColor\n    self.stepIndicatorView.lineTintColor = self.stepIndicatorView.circleTintColor\n    self.stepIndicatorView.lineMargin = 4.0\n    self.stepIndicatorView.lineStrokeWidth = 2.0\n    self.stepIndicatorView.displayNumbers = false //indicates if it displays numbers at the center instead of the core circle\n    self.stepIndicatorView.direction = .leftToRight //four directions\n```\n\n### Designable in Stroyboard and Xib (Optional)\nAfter adding a `UIView` to Stroyboard or Xib, change its class to `StepIndicatorView`. Then you are able to config it as this demonstration:\n\u003cp align=\"left\" \u003e\n\u003cimg src=\"https://raw.githubusercontent.com/chenyun122/StepIndicator/master/Screenshots/Designable.gif\" alt=\"Designable\" title=\"Designable\" width=\"90%\" height=\"90%\"\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\nSince Xcode(9.3) Inspector does not support enumeration options, we provide raw integer options for the directions:\u003cbr\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/chenyun122/StepIndicator/master/Screenshots/DirectionDesignable.png\" alt=\"Directions\" title=\"Directions\"\u003e\u003cbr\u003e\n0-default,left to right. 1-right to left. 2-top to bottom. 3-bottom to top.\n\u003c/p\u003e\n\n## Help\nHope you will enjoy it! Feel free to make an issue to me if you have any problems or need some improvements. And Please give the project a **star** if it's helpful to you, that's a great encouragement to me! ;)\n\n## License\nStepIndicator is released under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenyun122%2FStepIndicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenyun122%2FStepIndicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenyun122%2FStepIndicator/lists"}