Project Update


687474703a2f2f692e696d6775722e636f6d2f6f3071535754722e676966Just a quick, shameless, plug for my first Cocoapod: TFSliderView. I needed to make an animated toggle switch that I could use in a number of locations for an in-house project my dev shop is working on, so I decided to make it into a Cocoapod and share it in case anyone else needed something similar.

It’s built off of POP (Facebook’s animation framework) and, all in all, is pretty simple to use. You can install it with Cocoapods using the following line:

pod "TFSliderView", "~> 0.1.0"

And then you just create a view programmatically (as shown below), and call the toggle delegate methods to do whatever it is you need to when the view toggles:

I still have a list of to-dos I want to get done to make the pod more useful, including the below, but I wanted to share what I have so far.

  • Support for up to four buttons.
  • More convenient init methods to accompany the one monster of a designated initializer.
  • Generic starting values for [TFSliderView new].
  • Allowing each toggle state to have a unique color.
  • Complete documentation.

Leave a Reply

Your email address will not be published. Required fields are marked *