I have UIAlertViewController
as shown below image.
here's my code :
let alertController = UIAlertController(title: alertTitle.security, message: "", preferredStyle: UIAlertController.Style.alert)
alertController.addTextField { (textField : UITextField!) -> Void in
textField.placeholder = placeholder.security
textField.tintColor = .black
textField.isSecureTextEntry = true
}
I want to prevent some special characters to insert into UITextField
.