Giter Site home page Giter Site logo

swiftrangeslider's Introduction

SwiftRangeSlider

CocoaPods CocoaPods CocoaPods

This is a swift implementation of custom UIControl that allows users to select a range of values on a slider bar with 2 knobs.

Requirements

  • iOS 8.0+
  • Xcode 8+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 0.39.0+ is required to build SwiftRangeSlider.

To integrate SwiftRangeSlider into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, ‘8.0
use_frameworks!
target '[your_app_name]' do
  pod ‘SwiftRangeSlider’
end

Then, run the following command:

$ pod install

Usage

import SwiftRangeSlider

With Storyboards

To use SwiftRangeSlider on a storyboard, add a UIView to your view controller and set its class to RangeSlider. The Range Slider defaults to an iOS-esque style of slider, but it can be modified to look lots of different ways! There is even scaling on touch and labels, so be sure to experiment until you find exactly what you like!

SRS With Storyboards 1 SRS With Storyboards 2

Most of the customization parameters can be changed through IBDesignable and IBInspectable and should be reflected on the storyboard!

SRS With Storyboards 3

To reference the RangeSlider on your storyboard in your view controller's file, create an @IBOutlet connection of type RangeSlider:

@IBOutlet weak var rangeSlider: RangeSlider!

Programmatically

let rangeSlider:RangeSlider = RangeSlider()

swiftrangeslider's People

Contributors

briancorbin avatar dsoike avatar why2pac avatar pawelkata avatar brod-ie avatar

Watchers

James Cloos avatar  avatar

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.