      */
     private func setupViewProperties() {
         
+        translatesAutoresizingMaskIntoConstraints = false
+        
         tag = BHToastOptions.viewTag
-        
-        translatesAutoresizingMaskIntoConstraints = false
         
         backgroundColor = options.backgroundColor
         

            self.hide()
        })
    }
    
    
    // MARK: - Public methods
    

        super.drawRect(rect)
        
        addWidthConstraintToElement(self, rule: "\(width)")
        addHeightConstraintToElement(self, rule: ">=\(BHToastOptions.minHeight)")
        addHeightConstraintToElement(self, rule: "<=\(BHToastOptions.maxHeight)")
        
        addAlignCenterXConstraintFrom(view, to: self)
        addBottomMarginConstraintFrom(view, to: self, value: options.bottomOffset)
