RAMPaperSwitch

RAMPaperSwitch 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.

  1. Create a new UISwitch in your storyboard or nib.
  2. Set the class of the UISwitch to RAMPaperSwitch in your Storyboard or nib.
  3. Set onTintColor for the switch
  4. Set duration property programmatically if You want to change animation duration.
  5. Add animation for other views near the switch if need.

Posted

in

,

by

Tags:

Comments

Leave a Reply