Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source: UISwitch Replacement To Make Beautiful Custom Switches Easy

  •  
  •  
  •  
  •  
  •  

The UISwitch component has very few options that can be customized.  There are some libraries out there that allow you to customize things, but often you end up having to do a lot of the redesign yourself in order to get things to look good.

I’ve come across a library that allows you to create a custom switch which can be used as an almost drop-in replacement for the UISwitch component which looks very similar – although a little bit better with rounded edges, and can easily be customized to accomodate large text strings, and scaled to different sizes.

What I really like about this component is that everything is done using Core Graphics so you don’t have to do any graphics design work yourself, and no matter what adjustments you make things still look good, even if you decide to go for a giant sized switch.

Here’s a short video of the component in action:

The component is DCRoundSwitch from Domestic Cat Software the same guys who made the previously mentioned DCIntrospect library for easy debugging of Cocoa Touch interfaces.

You can find the Github here:
https://github.com/domesticcatsoftware/DCRoundSwitch

A good component to keep in mind in case so you don’t have to ever find yourself fiddling around making custom switches.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments