All Projects → iamshezad → SHSliderSwitch

iamshezad / SHSliderSwitch

Licence: MIT license
SHSliderSwitch is a simple lightweight library to implement an animated slider switch.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to SHSliderSwitch

Rn Slider Switch
Multi slider switch component in React Native
Stars: ✭ 100 (+455.56%)
Mutual labels:  slider, switch
LimitlessUI
Awesome C# UI library that highly reduced limits of your application looks
Stars: ✭ 41 (+127.78%)
Mutual labels:  slider, switch
yrs
Yarn registry switch tool
Stars: ✭ 12 (-33.33%)
Mutual labels:  switch
pinar
🌲☀️ Customizable, lightweight React Native carousel component with accessibility support.
Stars: ✭ 214 (+1088.89%)
Mutual labels:  slider
NodePingManage
可用于监控交换机/服务器/防火墙的存活状态的ping监控报警系统
Stars: ✭ 47 (+161.11%)
Mutual labels:  switch
SimpleSlider
Simple responsive slider created in pure javascript.
Stars: ✭ 21 (+16.67%)
Mutual labels:  slider
react-color
🎨 Is a tiny color picker widget component for React apps.
Stars: ✭ 50 (+177.78%)
Mutual labels:  slider
gen-cisco
🧨 Generates Cisco scripts based on YAML files
Stars: ✭ 29 (+61.11%)
Mutual labels:  switch
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (+238.89%)
Mutual labels:  slider
uberswitch
A header-only, unobtrusive, almighty alternative to the C++ switch statement that looks just like the original.
Stars: ✭ 83 (+361.11%)
Mutual labels:  switch
cachu-slider
🌈 🔆 Create animated full screen and content-fit sliders efficiently.
Stars: ✭ 30 (+66.67%)
Mutual labels:  slider
ModuleMania
Various useful sysmodules (kip files) for Nintendo Switch, to be used with CFW
Stars: ✭ 30 (+66.67%)
Mutual labels:  switch
Rich-Presence-U
Display your Nintendo games on Discord.
Stars: ✭ 77 (+327.78%)
Mutual labels:  switch
LiveFader
@IBDesignable Horizontal or vertical UIControl subclass that can start from bottom or middle of the control.
Stars: ✭ 21 (+16.67%)
Mutual labels:  slider
vue-barousel
Carousel component mimics NetEase Cloud Music
Stars: ✭ 13 (-27.78%)
Mutual labels:  slider
simple-switch
Vanilla JS/CSS Switch UI element
Stars: ✭ 18 (+0%)
Mutual labels:  switch
Switch
Manage chrome extensions from the toolbar
Stars: ✭ 13 (-27.78%)
Mutual labels:  switch
GDCheckbox
Customizable CheckBox / RadioButton component for iOS
Stars: ✭ 23 (+27.78%)
Mutual labels:  switch
PokemonRNGGuides
A repository of Pokemon RNG abuse guides
Stars: ✭ 62 (+244.44%)
Mutual labels:  switch
svelte-slidy
📸 Sliding action script
Stars: ✭ 211 (+1072.22%)
Mutual labels:  slider

SHSliderSwitch

SHSliderSwitch is a simple lightweight library to implement an animated slider switch.

Swift 4.0 License Platform

Installation

Just drag and drop the SHSliderSWitch.swift file from SHSliderSWitch folder to your project.

Cocoapods

pod 'SHSliderSwitch'

Usage

  1. Just drag and drop an view in storyboard and set view class to SHSliderSWitch.

  1. How to configure:

-- can configure using IBInspectable.

-- configure manually.

  //Current value of the switch. Defaults to 0.
  sliderSwitch.value = 0.0
  
  /// Minimum value. Must be less than maximumValue. Defaults to 0.
  sliderSwitch.minimumValue = 0.0
  
  /// Maximum value. Must be more than minimumValue. Defaults to 100.
  sliderSwitch.maximumValue = 100.0
  
  /// Increment value  in switch. Defaults to 1.
  sliderSwitch.stepValue = 1
  
  /// Text color of the circular label. Defaults to white.
  sliderSwitch.labelTextColor = UIColor.white
  
  /// Background color of the circular label. Defaults to lighter white.
  sliderSwitch.labelBackgroundColor = UIColor.blue
  
  /// Font of the circular label. Defaults to Futura-Medium, 14.0 points in size.
  sliderSwitch.labelFont = UIFont(name: "Futura-Medium", size: 14.0)
  
  /// Border width of the switch and circular label's layer. Defaults to 0.0.
  sliderSwitch.borderColor = 0.0
  
  /// Color of the border of the switch and circular label's layer. Defaults to clear color.
  sliderSwitch.borderColor = UIColor.clear
  
  /// Font of the buttons. Defaults to Futura-Bold, 20.0 points in size.
  sliderSwitch.buttonsFont = UIFont(name: "Futura-Bold", size: 20.0)
  
  /// Text color of the buttons. Defaults to white.
  sliderSwitch.buttonsTextColor = UIColor.white
        

Requirements

  • iOS 11.0+

Example

Download the Sample project.

Contact

Mail me @: [email protected]

Acknowledge

Inspired by GMStepper

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].