All Projects → T-Pham → Switch

T-Pham / Switch

Licence: mit
💊 An iOS switch control implemented in Swift with full Interface Builder support

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Switch

Uitextfield Navigation
🏄‍♂️ UITextField-Navigation makes it easier to navigate between UITextFields and UITextViews
Stars: ✭ 436 (+230.3%)
Mutual labels:  cocoapods, carthage, interface-builder, storyboard
Simplecheckbox
A simple Checkbox
Stars: ✭ 253 (+91.67%)
Mutual labels:  cocoapods, carthage, interface-builder
Kydrawercontroller
Side Drawer Navigation Controller similar to Android
Stars: ✭ 632 (+378.79%)
Mutual labels:  cocoapods, carthage, storyboard
Localize
Localize is a framework writed in swift to localize your projects easier improves i18n, including storyboards and strings.
Stars: ✭ 253 (+91.67%)
Mutual labels:  cocoapods, carthage, storyboard
Tweetextfield
Lightweight set of text fields with nice animation and functionality. 🚀 Inspired by https://uimovement.com/ui/2524/input-field-help/
Stars: ✭ 421 (+218.94%)
Mutual labels:  cocoapods, carthage, interface-builder
Sidemenu
An interactive iOS side menu with rich features.
Stars: ✭ 442 (+234.85%)
Mutual labels:  cocoapods, carthage, storyboard
Stevia
🍃 Concise Autolayout code
Stars: ✭ 3,182 (+2310.61%)
Mutual labels:  cocoapods, carthage, storyboard
Sidemenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less.
Stars: ✭ 5,267 (+3890.15%)
Mutual labels:  cocoapods, carthage, storyboard
Forceblur
ForceBlur Animation for iOS Messaging Apps
Stars: ✭ 666 (+404.55%)
Mutual labels:  cocoapods, interface-builder, storyboard
Randomkit
Random data generation in Swift
Stars: ✭ 1,458 (+1004.55%)
Mutual labels:  cocoapods, carthage
Device
Light weight tool for detecting the current device and screen size written in swift.
Stars: ✭ 1,503 (+1038.64%)
Mutual labels:  cocoapods, carthage
Floatinglabeltextfieldswiftui
Floating Label TextField for SwiftUI. FloatingLabelTextFieldSwiftUI
Stars: ✭ 128 (-3.03%)
Mutual labels:  cocoapods, interface-builder
Szmentionsswift
Library to help handle mentions
Stars: ✭ 109 (-17.42%)
Mutual labels:  cocoapods, carthage
Pincodeinputview
A input text view for entering pin code.
Stars: ✭ 108 (-18.18%)
Mutual labels:  cocoapods, carthage
Natrium
A pre-build (Swift) script to alter your Xcode project at pre-build-time per environment, build configuration and target.
Stars: ✭ 131 (-0.76%)
Mutual labels:  cocoapods, carthage
Alamofire
Elegant HTTP Networking in Swift
Stars: ✭ 36,896 (+27851.52%)
Mutual labels:  cocoapods, carthage
Microfeatures Example
📦📱 Example of iOS app built using the uFeatures architecture
Stars: ✭ 112 (-15.15%)
Mutual labels:  cocoapods, carthage
Xib2storyboard
A tool to convert Xcode .xib to .storyboard files
Stars: ✭ 121 (-8.33%)
Mutual labels:  interface-builder, storyboard
Nvactivityindicatorview
A collection of awesome loading animations
Stars: ✭ 10,031 (+7499.24%)
Mutual labels:  cocoapods, carthage
Shari
Shari is the alternative to the library of UIPickerView(drum roll) in Swift. You can select a item using UITableView.
Stars: ✭ 111 (-15.91%)
Mutual labels:  cocoapods, carthage
'   :::===  :::  ===  === ::: :::==== :::===== :::  ===
'   :::     :::  ===  === ::: :::==== :::      :::  ===
'    =====  ===  ===  === ===   ===   ===      ========
'       ===  ===========  ===   ===   ===      ===  ===
'   ======    ==== ====   ===   ===    ======= ===  ===
'                                                              

Switch

CI Status GitHub issues Codecov Documentation

GitHub release Platform License

Carthage

CocoaPods CocoaPods downloads

Description

An iOS switch control implemented in Swift with full Interface Builder support.

To run the demo project:

pod try RoundedSwitch

Switch

Switch

Usage

Either config the switch in the Interface Builder or programatically as follow:

import Switch
...
let mySwitch = Switch()
mySwitch.leftText = "Windows"
mySwitch.rightText = "Mac"
mySwitch.rightSelected = true
mySwitch.tintColor = UIColor.purple
mySwitch.disabledColor = mySwitch.tintColor.withAlphaComponent(0.4)
mySwitch.backColor = mySwitch.tintColor.withAlphaComponent(0.05)
mySwitch.sizeToFit()
mySwitch.addTarget(self, action: #selector(ViewController.switchDidChangeValue(_:)), for: .valueChanged)

Please note that the module name is Switch. However, when installed with CocoaPods, it is RoundedSwitch.

Please see the Reference Documentation for details.

Installation

Carthage

Add the line below to your Cartfile:

github "T-Pham/Switch"

CocoaPods

Add the line below to your Podfile:

pod 'RoundedSwitch'

Manually

Add the file Switch.swift to your project. You are all set.

Compatibility

From version 2.0.0, Swift 3 syntax is used. If your project is still using Swift version 2, please use a UITextField-Navigation version prior to 2.0.0.

Podfile

pod 'RoundedSwitch', '~> 1.0.3'

or Cartfile

github "T-Pham/Switch" ~> 1.0.3

License

Switch 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].