     
     open func constrainCenterXToSuperview() {
         if let superview = superview {
-            constrainXCenter(to:superview)
+            constrainCenterX(to:superview)
         }
     }
     
     open func constrainCenterYToSuperview() {
         if let superview = superview {
-            constrainYCenter(to:superview)
+            constrainCenterY(to:superview)
         }
     }
     

    
    open func removeAllSubviews() {
        self.subviews.forEach { $0.removeFromSuperview() }
    }
}


        self.removeConstraints(self.constraints)
    }

    open func constrainCenterX(to:UIView) {
        self.translatesAutoresizingMaskIntoConstraints=false
        self.centerXAnchor.constraint(equalTo: to.centerXAnchor).isActive = true
    }
    
    open func constrainCenterY(to:UIView) {
        self.translatesAutoresizingMaskIntoConstraints=false
        self.centerYAnchor.constraint(equalTo: to.centerYAnchor).isActive = true
    }
    
    open func constrainCenter(to:UIView) {
        self.constrainCenterX(to: to)
        self.constrainCenterY(to: to)
    }
    
    open func constrainCenterToSuperview() {
