                 {
                     setNeedsLayout()
                     
-                    if keyPath == "isHidden" && !(change![.newKey] as! Bool)
+                    if keyPath == "hidden" && !(change![.newKey] as! Bool)
                     {
                         sbv.setNeedsDisplay()
                     }

        super.willRemoveSubview(subview)
        
        subview.tg_layoutCompletedDo(nil)
        subview.removeObserver(self, forKeyPath: "isHidden")
        subview.removeObserver(self, forKeyPath: "frame")
        subview.removeObserver(self, forKeyPath: "center")


        
        
        
        if (keyPath == "frame" || keyPath == "hidden" || keyPath == "center")
        {
            
            if !self.tg_isLayouting
