I know there are tons of stack overflow pages out there that explain how to do this but everytime I take the code from here and put it in i get the same error and that error
Here's the correct answer for this.
textField.text = "" if (textField.text.isEmpty) { print("Ooops, it's empty") }