Latest 1.0.0
Homepage https://github.com/escfrya/VerticalPicker
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

Usage

Simple slider with background color:

let slider = VerticalPicker(frame: CGRect(x: 100, y: 200, width: 65, height: 135))
slider.backgroundColor = UIColor.red
slider.valueChanged = { value, isFinal in
    print(value)
}
view.addSubview(slider)

With background image:

slider.backgroundImage = UIImage(named: "color-picker")

With gradient background:

slider.gradientTopColor = UIColor.white
slider.gradientBottomColor = UIColor.black

Installation

CocoaPods

pod 'VerticalPicker'

Example screenshot

Latest podspec

{
    "name": "VerticalPicker",
    "version": "1.0.0",
    "summary": "Vertical slider control.",
    "description": "VerticalPicker is control like slider in iOS11 Control Center.",
    "homepage": "https://github.com/escfrya/VerticalPicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Igor Skovorodkin": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/escfrya/VerticalPicker.git",
        "tag": "1.0.0"
    },
    "source_files": "VerticalPicker/**/*.{swift}",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This