         nameField.leftAnchor.constraint(equalTo: view.leftAnchor, constant: 14).isActive = true
         nameField.topAnchor.constraint(equalTo: view.topAnchor, constant: 79.5).isActive = true
         nameField.translatesAutoresizingMaskIntoConstraints = false
-
+        
+        nameField.addTarget(self, action: #selector(textFieldDidChange(_:)), for: UIControl.Event.editingChanged)
+        
+    }
+    
+    @objc func textFieldDidChange(_ textField: UITextField) {
+        if (textField.text != "") {
+            createButton.isUserInteractionEnabled = true;
+        } else {
+            createButton.isUserInteractionEnabled = false;
+        }
     }
 
     func prepareGroupForLabel() {

        dismiss(animated: true, completion:nil)
    }






    ]
    
    fileprivate var colorNames: [String] = ["Labs Blue", "College Green", "Locust Yellow", "Cheeto Orange","Red-ing Terminal", "Baltimore Blue", "Purple"]
    
    
    weak var delegate: GSRGroupController!


