Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit a98e189 Mar 30, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
RangeControl.xcodeproj clean up Mar 29, 2019
RangeControl Clean up Mar 29, 2019
RangeControlExample readme Mar 30, 2019
LICENSE Initial commit Mar 29, 2019
README.md
RangeControl.podspec
screenshot1.png screenshots Mar 29, 2019
screenshot2.gif screenshots Mar 29, 2019
screenshot3.gif screenshots Mar 29, 2019

README.md

RangeControl

RangeControl is a UIControl element that allows to select control range from min to max values.

ScreenShot

Screenshoot

Getting Started

You can setup RangeControl from code or from storyboard. It also allows you to add custom view to the background.

let imageView = UIImageView(image: UIImage(named: "testImage"))
imageView.contentMode = .scaleAspectFill
imageView.translatesAutoresizingMaskIntoConstraints = false
imageView.clipsToBounds = true
rangeControl.backgroundView.addArrangedSubview(imageView)

You can add block to listen for values update:

rangeControl.onRangeValueChanged = { (low,up) in
            print("Low: \(low) up: \(up)")
        }

Prerequisites

The demo project is included here RangeControlExample.

screenshot1

Requirements

  • iOS 10.0+
  • Xcode 10.1+
  • Swift 4.2+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'RangeControl'

Authors

Donations

Any amount you can donate today to support the project would be greatly appreciated.

paypal

License

This project is licensed under the MIT License - see the LICENSE file for details

You can’t perform that action at this time.