     }
     
     @objc func onTexturesButtonTapped(sender: UIBarButtonItem) {
+        
+        //show texture selector
+        
         textureSelectorPanelVC.modalPresentationStyle = .popover
         textureSelectorPanelVC.popoverPresentationController?.barButtonItem = sender
         

        
        codeViewController?.document = document
        
        //needs rework
        if let textures = codeViewController?.getTextures() {
            for (i, texture) in textures.enumerated() {
                let textureUnit = TextureUnit(filename: texture)

    }
    
    @objc func onViewButtonTapped(sender: UIBarButtonItem) {
        
        //show metal VC
        
        metalViewPanelVC.modalPresentationStyle = .popover
        metalViewPanelVC.popoverPresentationController?.barButtonItem = sender
        
