https://github.com/cemolcay/tempostepper
Fully customisable stepper with auto stepping.
https://github.com/cemolcay/tempostepper
ios stepper swift tempo
Last synced: 9 months ago
JSON representation
Fully customisable stepper with auto stepping.
- Host: GitHub
- URL: https://github.com/cemolcay/tempostepper
- Owner: cemolcay
- License: mit
- Created: 2017-10-27T20:49:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T12:50:19.000Z (about 6 years ago)
- Last Synced: 2025-04-15T23:08:10.294Z (about 1 year ago)
- Topics: ios, stepper, swift, tempo
- Language: Swift
- Size: 227 KB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TempoStepper
===
Fully customizable stepper that displays increase/decrease buttons on its left side, vertically, lets you auto step if you hold them as well as lets you write the value with keyboard if you tap to its value field.
Demo
----

Requirements
----
- Swift 3.0+
- iOS 9.0+
Install
----
```
pod 'TempoStepper'
```
Usage
----
`TempoStepper` is an `@IBDesignable` control, so you can design it directly from storyboard or of course you can initialize it with traditional ways by programmatically.
Since it's a `UIControl` subclass, you just need to subscribe its `.valueChanged` event by `addTarget` function of `UIControl`. You can define an `@IBAction` function for that as well, if you want to link it from your storyboard.
It is highly customizable. You can either tweak its `@IBInspectable` properties in storyboard or change them from your code.
You can turn off tap to change and auto stepping features with `shouldTapToChange` and `shouldAutoStep` properties.
Also, you can edit the auto stepping speeds, min/max values of stepper and displaying decimals or not.