I am attempting to create an add button using the following code:
@IBOutlet weak var userInput: UITextField!
@IBAction func addMember(_ sender: UIButton) {
if (userInput.text != nil) && userInput.text != "" {
list.append(userInput.text!)
//userInput.placeholder = "Add more ?"
userInput.text = ""
}
}