Loop through subviews
for view in self.view.subviews as [UIView] {
if let textField = view as? UITextField {
if textField.text == "" {
// show error
return
}
}
}
for view in self.view.subviews as [UIView] {
if let textField = view as? UITextField {
if textField.text == "" {
// show error
return
}
}
}