Latest 1.0.3
Homepage https://github.com/surjeet-singh/VolumeSlider
License MIT
Platforms ios 8.0
Authors

Volume Slider provide a subclass of UIView, used to create volumeSlider with bar representation.
It can be managed using IBDesignable and IBInspectable without writting any code.

SliderImage

With single color
volumeSlider.barColor = UIColor.red
SliderImage

If you need horizontal gradient color on slider, then use

volumeSlider.barColors = [UIColor.red, UIColor.green]

SliderImage

Usage

Swift

Objective-C

VolumeSlider *volumeSlider = [[VolumeSlider alloc] initWithFrame:CGRectMake(10.f, 50.f, 300.f, 250.f)];
[volumeSlider setMaxValue:100];
[volumeSlider setBarWidth:10];
[volumeSlider setBarSpace:5];
[self.view addSubview:volumeSlider];

StepSlider can be fully customised by any of this properties:

  • defaultBarColor
  • barColor
  • barColors

  • verticalPadding
  • barWidth
  • barSpace
  • roundToPlaces

  • maxValue
  • currentValue

Requirements

  • iOS 8.0+
  • Swift 3.0+ / Objective-C
  • Xcode 8

Installation

CocoaPods

Add pod 'VolumeSlider' to your Podfile.

Manual Installation

Just copy VolumeSlider class to your project.

Latest podspec

{
    "name": "VolumeSlider",
    "version": "1.0.3",
    "summary": "A custom volume slider with bar representation.",
    "description": "VolumeSlider control with bar representation allow user to change value with touch event. Also allow to set gradient color horizontally.",
    "homepage": "https://github.com/surjeet-singh/VolumeSlider",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Surjeet Singh": "[email protected]"
    },
    "source": {
        "git": "https://github.com/surjeet-singh/VolumeSlider.git",
        "tag": "1.0.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "VolumeSlider/Source/*.{swift}",
    "swift_version": "3.0"
}

Pin It on Pinterest

Share This