     private var xEndingPoint: CGFloat = 0
     private var buttonHeight: CGFloat = 0
     private var isFinished: Bool = false
-    
+    private var layoutSetuped: Bool = false
     override init(frame: CGRect) {
         super.init(frame: frame)
         setupView()

        return view
    }()
    let view: UIView = {
       let view = UIView()
        return view
    }()
    // MARK: Public properties
    var delegate: MTSlideToOpenDelegate?
    var animationVelocity: Double = 0.2
    var sliderViewTopDistance: CGFloat = 8.0 {
        didSet {

            break
        default:
            break
        }
    }
    
    override func updateConstraints() {
        super.updateConstraints()
        if !layoutSetuped {
            thumnailImageView.layer.cornerRadius = self.frame.height / 2.0
            layoutSetuped = true
        }
    }
    
