UIAlertController and input validation
I would change this:

alertButton.isEnabled = !Utils.isValidEmail(testStr: e) ? false : true


to this one:

alertButton.isEnabled = Utils.isValidEmail(testStr: e)