Swift Code for a Custom Slider. From a great tutorial written by: http://www.raywenderlich.com/u/kmikael.