An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# SwiftlyScrollSlider

[![Version](https://img.shields.io/cocoapods/v/SwiftlyScrollSlider.svg?style=flat)](http://cocoadocs.org/docsets/SwiftlyScrollSlider)
[![License](https://img.shields.io/cocoapods/l/SwiftlyScrollSlider.svg?style=flat)](http://cocoadocs.org/docsets/SwiftlyScrollSlider)
[![Platform](https://img.shields.io/cocoapods/p/SwiftlyScrollSlider.svg?style=flat)](http://cocoadocs.org/docsets/SwiftlyScrollSlider)
[![CocoaPods](https://img.shields.io/cocoapods/dt/SwiftlyScrollSlider.svg)](https://cocoapods.org/pods/SwiftlyScrollSlider)
[![CocoaPods](https://img.shields.io/cocoapods/dm/SwiftlyScrollSlider.svg)](https://cocoapods.org/pods/SwiftlyScrollSlider)

A custom scroll slider for UIScrollView.

![alt tag](https://raw.github.com/maximbilan/SwiftlyScrollSlider/master/img/1.png)

## 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.

![alt tag](https://raw.github.com/maximbilan/SwiftlyScrollSlider/master/img/2.png)

And the delegate of UITextView should be SwiftlyScrollSlider.

![alt tag](https://raw.github.com/maximbilan/SwiftlyScrollSlider/master/img/3.png)

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.