         }
     }
     
+    /// Slides button out of the frame if the user slide it beyond the center of the component or if he taps in the primary button when primaryButtonReactsToTap is true
     func slideButtonOutOfFrame(button: UIButton) {
         UIView.animateWithDuration(buttonAnimationDuration, animations: {
             if self.buttonSlidesHorizontally {

    
    /// Initialize the component
    func setup() {
/// MARK: Setting up label properties
        label.text = labelSuccessText
        label.textColor = labelSuccessTextColor
        label.textAlignment = .Center
        label.backgroundColor = labelSuccessBgColor
        addSubview(label)
        
/// MARK: Setting up buttons properties
        confirmButton.setTitle(confirmButtonTitle, forState: .Normal)
        confirmButton.backgroundColor = confirmButtonBgColor
        addSubview(confirmButton)

            }
        }
    }
}