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 is value of "string?" has no member "text" Any ideas of a solid way that will work for checking if a textfield is empty in swift?
let userEmail = userEmailTextField.text;
// Check for empty fields
if (userEmail.text.isEmpty) {
// Display alert message
return;
}

textproperty. Please show your code, otherwise it's hard to guess what's going on.userEmailvariable already contains the text of theuserEmailTextField. No need to do anotheruserEmail.text, just douserEmail.isEmpty