GithubHelp home page GithubHelp logo

maximbilan / swiftthicknesspicker Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 90 KB

iOS thickness picker

License: MIT License

Swift 95.33% Ruby 4.67%
ios ios-thickness-picker picker pickerview ui ui-components ui-kit ui-design uiview

swiftthicknesspicker's Introduction

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.

swiftthicknesspicker's People

Contributors

maximbilan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kishanmakk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.