{"id":2762,"url":"https://github.com/spromicky/StepSlider","last_synced_at":"2025-08-03T12:31:11.620Z","repository":{"id":44463351,"uuid":"44616396","full_name":"spromicky/StepSlider","owner":"spromicky","description":"StepSlider its custom implementation of slider such as UISlider for preset integer values.","archived":false,"fork":false,"pushed_at":"2021-06-15T10:27:43.000Z","size":294,"stargazers_count":555,"open_issues_count":6,"forks_count":109,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-24T18:57:32.751Z","etag":null,"topics":["carthage","cocoapods","coreanimation","enum","haptic","ios","labels","preset-values","slider","stepslider","uikit","uislider","xcode"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/spromicky.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-10-20T15:37:03.000Z","updated_at":"2024-04-23T20:14:26.000Z","dependencies_parsed_at":"2022-08-12T11:11:18.927Z","dependency_job_id":null,"html_url":"https://github.com/spromicky/StepSlider","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spromicky%2FStepSlider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spromicky%2FStepSlider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spromicky%2FStepSlider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spromicky%2FStepSlider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spromicky","download_url":"https://codeload.github.com/spromicky/StepSlider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228543090,"owners_count":17934426,"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","coreanimation","enum","haptic","ios","labels","preset-values","slider","stepslider","uikit","uislider","xcode"],"created_at":"2024-01-05T20:16:22.159Z","updated_at":"2024-12-07T00:30:53.617Z","avatar_url":"https://github.com/spromicky.png","language":"Objective-C","readme":"# StepSlider\n\nStepSlider its custom implementation of slider such as `UISlider` for preset values. Behind the scenes StepSlider manipulate integer indexes. Its based on drawing directlyon `CAShapeLayer`. \n\n![](screenshots/example.gif)\n\n## Usage\n\nYou can add StepSlider right from code with any of standard initialisers. Or you can add it directly on your storybord. Its fully `IBDesignable` and `IBInspetable` compatible.\n\n```objc\nStepSlider *slider = [[StepSlider alloc] initWithFrame:CGRectMake(10.f, 200.f, 300.f, 44.f)];\n[slider setMaxCount:10];\n[slider setIndex:2];\n[self.view addSubview:slider];\n```\n\nStepSlider can be fully customised by any of this properties:\n\n- `trackHeight`\n- `trackCircleRadius`\n- `sliderCircleRadius`\n- `dotsInteractionEnabled`\n- `trackColor`\n- `sliderCircleColor`\n- `sliderCircleImage`\n\nSupports haptic feedback on `valueChanged:`.\n\n#### Labels\n\nFrom version `1.0.0` StepSlider support labels near each circle on track. \n\n```objc\nslider.labels = @[@\"Some string\", @\"another string\", @\"one more\"];\n```\n\n![](screenshots/example_labels.gif)\n\n`slider.adjustLabel` - set first and last label to exactly to frame left and right.\n\nFrom version `1.8.0` StepSlider support `NSAttributedString` as label text.\n\n![](screenshots/attributedString.png)\n\n#### Images\n\nFor `1.2.0` and higher you can use images for `sliderCircle ` and `trackCircles`. For `trackCircles` supported two states: `normal` and `selected`.\n\n```objc\n[self.sliderView setTrackCircleImage:[UIImage imageNamed:@\"unselected_dot\"] forState:UIControlStateNormal];\n[self.sliderView setTrackCircleImage:[UIImage imageNamed:@\"selected_dot\"] forState:UIControlStateSelected];\n```\n\n![](screenshots/images.png)\n\n## Requirements\n\n- version `1.3.0` and above needs iOS 10.0+\n- version `1.2.1` supports iOS 7.0+\n\n## Installation\n\n### CocoaPods\n\nTo integrate `StepSlider` into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```\npod 'StepSlider', '~\u003e 1.8.0'\n```\n\nThen, run the following command:\n\n```\n$ pod install\n```\n\n### Carthage\n\nTo integrate `StepSlider` into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```\ngithub \"spromicky/StepSlider\" ~\u003e 1.8.0\n```\n\nRun `carthage update` to build the framework and drag the built `StepSlider.framework` into your Xcode project.\n\n### Swift Package Manager\n\nStart `1.8.0` StepSlider can be integrated in your Xcode project. When adding new package search `StepSlider` and select version `1.8.0` or above.\n\n### Manual Installation\n\nJust copy `StepSlider` class to your project.\n\n## License\n\nStepSlider is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["UI","Progress"],"sub_categories":["Slider","Layout","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspromicky%2FStepSlider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspromicky%2FStepSlider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspromicky%2FStepSlider/lists"}