https://github.com/maximbilan/swiftlyscrollslider
A custom scroll slider for UIScrollView
https://github.com/maximbilan/swiftlyscrollslider
custom-scroll-slider ios swift swift-3 swift3 uiscrollview uitextview uiview
Last synced: over 1 year ago
JSON representation
A custom scroll slider for UIScrollView
- Host: GitHub
- URL: https://github.com/maximbilan/swiftlyscrollslider
- Owner: maximbilan
- License: mit
- Created: 2016-06-09T07:58:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-22T10:15:29.000Z (almost 8 years ago)
- Last Synced: 2025-04-13T14:07:26.231Z (over 1 year ago)
- Topics: custom-scroll-slider, ios, swift, swift-3, swift3, uiscrollview, uitextview, uiview
- Language: Swift
- Homepage:
- Size: 1.16 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftlyScrollSlider
[](http://cocoadocs.org/docsets/SwiftlyScrollSlider)
[](http://cocoadocs.org/docsets/SwiftlyScrollSlider)
[](http://cocoadocs.org/docsets/SwiftlyScrollSlider)
[](https://cocoapods.org/pods/SwiftlyScrollSlider)
[](https://cocoapods.org/pods/SwiftlyScrollSlider)
A custom scroll slider for UIScrollView.

## Installation
CocoaPods:
pod 'SwiftlyScrollSlider'
Manual:
Just copy the SwiftlyScrollSlider.swift into your project.
## Using
Using is really simple. Please create for the example UITextView and UIView for the scroll slider in Storyboard or XIB, and set up a class to SwiftlyScrollSlider for this UIView.

And the delegate of UITextView should be SwiftlyScrollSlider.

That's all.
Examples of customization:
scrollSlider.thumbImageView?.image = UIImage(named: "ScrollSliderCustom.png") // Change an image of the scroll slider
scrollSlider.lineBackgroundView?.backgroundColor = UIColor.yellowColor() // A color of the line
scrollSlider.lineBackgroundView?.layer.borderColor = UIColor.yellowColor().CGColor // A border of the line color
You can easily found the example in this repository.
## License
SwiftlyScrollSlider is available under the MIT license. See the LICENSE file for more info.