Latest 0.6.1
Homepage https://github.com/maximbilan/SwiftThicknessPicker
License MIT
Platforms ios 8.0, requires ARC
Authors

Swift Thickness Picker

Version
License
Platform
CocoaPods
CocoaPods

A simple iOS thickness picker.
Supports two modes: vertical and horizontal.

alt tag

Installation

CocoaPods:

pod 'SwiftThicknessPicker'

Manual:

Copy SwiftThicknessPicker.swift to your project.

Using

You can create from Storyboard or XIB. Or create manually:

let picker = SwiftThicknessPicker()

For handling changing of values you should implement protocol SwiftThicknessPickerDelegate:

picker.delegate = self

func valueChanged(value: Int)
}

Direction:

picker.direction = SwiftThicknessPicker.PickerDirection.Vertical // Vertical, Horizontal

Also, you can change current value, the maximum value or minimum value, for example:

picker.currentValue = 0
picker.maxValue     = 30
picker.minValue     = 1

And other settings:

labelFontColor        // A font color of the moving label
labelBackgroundColor  // A background color of the moving label
labelFont             // A font of the moving label

License

SwiftThicknessPicker is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwiftThicknessPicker",
    "version": "0.6.1",
    "summary": "Swift Thickness Picker",
    "description": "A simple iOS Thickness Picker",
    "homepage": "https://github.com/maximbilan/SwiftThicknessPicker",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Maxim Bilan": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/maximbilan/SwiftThicknessPicker.git",
        "tag": "0.6.1"
    },
    "source_files": [
        "Classes",
        "SwiftThicknessPicker/Sources/**/*.{swift}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This