Latest | 0.0.3 |
---|---|
Homepage | https://github.com/AlexeyIS/RangeControl |
License | MIT |
Platforms | ios 10.0 |
Frameworks | UIKit |
Authors |
RangeControl is a UIControl element that allows to select control range from min to max values.
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.
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
- Alexey Ledovskiy – Initial work – RangeControl
Donations
Any amount you can donate today to support the project would be greatly appreciated.
License
This project is licensed under the MIT License – see the LICENSE file for details
Latest podspec
{ "name": "RangeControl", "platforms": { "ios": "10.0" }, "version": "0.0.3", "summary": "RangeControl lets user to trim from both ends.", "description": "RangeControl allows to select range values from min to max range.", "homepage": "https://github.com/AlexeyIS/RangeControl", "screenshots": [ "https://raw.githubusercontent.com/AlexeyIS/RangeControl/master/screenshot1.png", "https://raw.githubusercontent.com/AlexeyIS/RangeControl/master/screenshot2.gif", "https://raw.githubusercontent.com/AlexeyIS/RangeControl/master/screenshot3.gif" ], "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Alexey Ledovskiy": "[email protected]" }, "social_media_url": "http://twitter.com/AlexeyIS", "source": { "git": "https://github.com/AlexeyIS/RangeControl.git", "tag": "0.0.3" }, "source_files": "RangeControl/**/*.{swift}", "frameworks": "UIKit", "swift_version": "4.2" }
Sat, 30 Mar 2019 11:18:08 +0000