In this video, you will learn how to build a custom UIControl in Swift, specifically a Segmented Control. Xcode 6+ introduced the concept of @IBDesignable and @IBInspectable where you can create/modify your control at design time and see the changes in the Storyboard.
Really cool huh? Watch the video to learn how.
What if you could spruce up the control with some cool animations? We added some animations to the thumb view so it springs to the final location. See the GIF image below. Want to learn how to do this? Download the sample project below to see how to implement the Custom animations.