https://github.com/maximbilan/swiftthicknesspicker
iOS thickness picker
https://github.com/maximbilan/swiftthicknesspicker
ios ios-thickness-picker picker pickerview ui ui-components ui-design ui-kit uiview
Last synced: 12 months ago
JSON representation
iOS thickness picker
- Host: GitHub
- URL: https://github.com/maximbilan/swiftthicknesspicker
- Owner: maximbilan
- License: mit
- Created: 2015-05-12T07:22:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-09-21T15:40:53.000Z (almost 8 years ago)
- Last Synced: 2025-07-18T05:36:17.784Z (12 months ago)
- Topics: ios, ios-thickness-picker, picker, pickerview, ui, ui-components, ui-design, ui-kit, uiview
- Language: Swift
- Homepage:
- Size: 87.9 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Swift Thickness Picker
[](http://cocoadocs.org/docsets/SwiftThicknessPicker)
[](http://cocoadocs.org/docsets/SwiftThicknessPicker)
[](http://cocoadocs.org/docsets/SwiftThicknessPicker)
[](https://cocoapods.org/pods/SwiftThicknessPicker)
[](https://cocoapods.org/pods/SwiftThicknessPicker)
A simple iOS thickness picker.
Supports two modes: vertical and horizontal.

## Installation
CocoaPods:
pod 'SwiftThicknessPicker'
Manual:
Copy SwiftThicknessPicker.swift to your project.
## Using
You can create from Storyboard or XIB. Or create manually:
let picker = SwiftThicknessPicker()
For handling changing of values you should implement protocol SwiftThicknessPickerDelegate:
picker.delegate = self
func valueChanged(value: Int)
}
Direction:
picker.direction = SwiftThicknessPicker.PickerDirection.Vertical // Vertical, Horizontal
Also, you can change current value, the maximum value or minimum value, for example:
picker.currentValue = 0
picker.maxValue = 30
picker.minValue = 1
And other settings:
labelFontColor // A font color of the moving label
labelBackgroundColor // A background color of the moving label
labelFont // A font of the moving label
## License
SwiftThicknessPicker is available under the MIT license. See the LICENSE file for more info.