iOS style toggle mixin

🚧

Whoa there!

This post contains code that's more than 11 years old. It might be fine, but you should probably check to make sure this isn't incredibly stupid by today's standards.

This could probably use a little more work, but it’s heading in the right direction.