 class VHomeUploadSyncBar:UIView
 {
     private weak var controller:CHomeUploadSync!
+    private weak var spinner:VSpinner!
+    private weak var layoutCancelButtonLeft:NSLayoutConstraint!
+    private let kSpinnerHeight:CGFloat = 60
+    private let kCancelButtonWith:CGFloat = 120
+    private let kCancelButtonHeight:CGFloat = 34
+    private let kCornerRadius:CGFloat = 4
     
     convenience init(controller:CHomeUploadSync)
     {

        translatesAutoresizingMaskIntoConstraints = false
        self.controller = controller
        
        let border:UIView = UIView()
        border.backgroundColor = UIColor.black
        border.isUserInteractionEnabled = false
        border.translatesAutoresizingMaskIntoConstraints = false
        
        let cancelButton:UIButton = UIButton()
        cancelButton.translatesAutoresizingMaskIntoConstraints = false
        cancelButton.setTitleColor(UIColor.black, for:UIControlState.normal)
        cancelButton.setTitleColor(UIColor.white, for:UIControlState.highlighted)
        cancelButton.setTitle(NSLocalizedString("VHomeUploadSyncBar_cancel", comment:""), for:UIControlState.normal)
        cancelButton.titleLabel!.font = UIFont.medium(size:14)
        cancelButton.addTarget(
            self,
            action:#selector(actionCancel(sender:)),

        
        addSubview(border)
        addSubview(cancelButton)
        addSubview(spinner)
        
        let views:[String:UIView] = [
            "border":border,
            "cancelButton":cancelButton]
        
        let metrics:[String:CGFloat] = [
            "spinnerHeight":kSpinnerHeight,
            "cancelButtonWith":kCancelButtonWith,
            "cancelButtonHeight":kCancelButtonHeight]
        
        addConstraints(NSLayoutConstraint.constraints(
            withVisualFormat:"H:|-0-[border]-0-|",
            options:[],
            metrics:metrics,
            views:views))
