code: def destroy(self):
          
          layout = self.layout
          if layout is not None:
              layout.removeFromSuperview()
              self.layout = None
          super(UiKitViewGroup, self).destroy()
docs: A reimplemented destructor that destroys the layout widget.