<commit_before>//
//  SOTSwipeControl.swift
//  SliderProject
//
//  Created by <NAME> on 06/06/16.
//  Copyright © 2016 Studiout. All rights reserved.
//

import UIKit

@IBDesignable

class SOTSwipeControl: UIView, UIGestureRecognizerDelegate {
    
    //Model
    weak var delegate:SOTSwipeControlDelegate?;
    
    var leftColor:UIColor = UIColor.red {
        didSet {
            leftSlider?.backgroundColor = leftColor;
        }
    }
    var rightColor:UIColor = UIColor.blue {
        didSet {
            rightSlider?.backgroundColor = rightColor;
        }
    }
    var textColor:UIColor = UIColor.lightGray {
        didSet {
            label?.textColor = textColor;
        }
    }
    
    var normalText:String = "Normal text" {
        didSet {
            if self.sliderStatus == .normal {
                self.label?.text = normalText;
            }
        }
    }
    var leftSwipeText:String = "Left Swipe text" {
        didSet {
            if self.sliderStatus == .leftActive {
                self.label?.text = leftSwipeText;
            }
        }
    }
    var leftSuccessText:String = "Left Completed text" {
        didSet {
            if self.sliderStatus == .leftSuccess {
                self.label?.text = leftSuccessText;
            }
        }
    }
    var rightSwipeText:String = "Right Swipe text" {
        didSet {
            if self.sliderStatus == .rightActive {
                self.label?.text = rightSwipeText;
            }
        }
    }
    var rightSuccessText:String = "Right Completed text" {
        didSet {
            if self.sliderStatus == .rightSuccess {
                self.label?.text = rightSuccessText;
            }
        }
    }
    var completedText:String = "Completed text"  {
        didSet {
            if self.sliderStatus == .complete {
                self.label?.text = completedText;
            }
        }
    }
    
    fileprivate var gestureBegan:Bool = false;
    var isAsync:Bool = false;
    
    
    var sliderStatus:SOTSliderStatus = .normal {
        didSet {<commit_msg>SwipeControl feat: inspectable values declaration<commit_after>//
//  SOTSwipeControl.swift
//  SliderProject
//
//  Created by <NAME> on 06/06/16.
//  Copyright © 2016 Studiout. All rights reserved.
//

import UIKit

@IBDesignable

class SOTSwipeControl: UIView, UIGestureRecognizerDelegate {
    
    //Model
    weak var delegate:SOTSwipeControlDelegate?;
    
@IBInspectable var leftColor:UIColor = UIColor.red {
        didSet {
            leftSlider?.backgroundColor = leftColor;
        }
    }
@IBInspectable var rightColor:UIColor = UIColor.blue {
        didSet {
            rightSlider?.backgroundColor = rightColor;
        }
    }
@IBInspectable var textColor:UIColor = UIColor.lightGray {
        didSet {
            label?.textColor = textColor;
        }
    }
    
@IBInspectable var normalText:String = "Normal text" {
        didSet {
            if self.sliderStatus == .normal {
                self.label?.text = normalText;
            }
        }
    }

@IBInspectable var leftSwipeText:String = "Left Swipe text" {
        didSet {
            if self.sliderStatus == .leftActive {
                self.label?.text = leftSwipeText;
            }
        }
    }
    
@IBInspectable var leftSuccessText:String = "Left Completed text" {
        didSet {
            if self.sliderStatus == .leftSuccess {
                self.label?.text = leftSuccessText;
            }
        }
    }
    
@IBInspectable var rightSwipeText:String = "Right Swipe text" {
        didSet {
            if self.sliderStatus == .rightActive {
                self.label?.text = rightSwipeText;
            }
        }
    }
    
@IBInspectable var rightSuccessText:String = "Right Completed text" {
        didSet {
            if self.sliderStatus == .rightSuccess {
                self.label?.text = rightSuccessText;
            }
        }
    }
    
@IBInspectable var completedText:String = "Completed text"  {
        didSet {
            if self.sliderStatus == .complete {
                self.label?.text = completedText;
            }
        }
    }
    
    fileprivate var gestureBegan:Bool = false;
    var isAsync:Bool = false;
    
    
    var sliderStatus:SOTSliderStatus = .normal {
        didSet {
{'fraction_non_alphanumeric': 0.0921358771521638, 'fraction_numerical': 0.004653327128897162, 'mean_word_length': 1.6455384615384616, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3099133', 'n_tokens_mistral': 1266, 'n_tokens_neox': 1241, 'n_words': 251}