UISlider:
*Adding a custom thumb image
To add a custom image for the thumb of the slider, simply call the setThumbImage method with your custom image:
Swift 3.1:
let slider = UISlider()
let thumbImage = UIImage
slider.setThumbImage(thumbImage, for: .normal)