#WIP not stable yet.
#TIRAMPaperSwitch
This project is a Titanium Wrap of the Objective-C port of RAMPaperSwitch.
This project subclasses UISwitch which paints over the parent view with the onTintColor
when the switch is turned on.
Credit for the original swift implementation goes to Ramotion.
- iOS 8.0+
- Xcode 6.1+
#Installation
Grab the zip file from dist and unzip it in the Titanium project.
$ gittio install TIRAMPaperSwitch
#Usage
TIRAMPaperSwitch is a drop-in replacement of UISwitch. You just need to set the onTintColor
property of the switch, and it will automatically paint over its superview with the selected color.
You have ability to set duration of animation instead of default value.
(more instructions on this in a second)