     
     
     private func updateSlideControlForTrackingTouch() {
-        if trackingTouch != nil{
-            sliderStrategy.updateSlideControlForTouch(self, touch: trackingTouch!)
+        if let trackingTouch = trackingTouch {
+            sliderStrategy.updateSlideControlForTouch(self, touch: trackingTouch)
         }
     }
     

            backgroundView = imageView
        }
    }
    @IBInspectable public var overlayImage: UIImage! {
        get{
            if let imageView = overlayView as? UIImageView {
                return imageView.image


public class TFSlideControl: UIControl {
    
    public var sliderStrategy: TFSlideControlSliderStrategyProtocol = TFSlideControlSliderDefaultStrategy()
    public var resetAfterValueChange: Bool = false
    
    
    private var trackingTouch: UITouch?
    
    
    @IBInspectable public var backgroundImage: UIImage? {
        get{
            if let imageView = backgroundView as? UIImageView {
                return imageView.image
