fix specs to multiple validation #123
This commit is contained in:
parent
8f224aba83
commit
62586fe255
|
|
@ -104,7 +104,7 @@ func validationSuccessful() {
|
|||
|
||||
func validationFailed(errors:[(Validatable ,ValidationError]) {
|
||||
// turn the fields to red
|
||||
for (field, error) in validator.errors {
|
||||
for (field, error) in errors {
|
||||
if let field = field as? UITextField {
|
||||
field.layer.borderColor = UIColor.redColor().CGColor
|
||||
field.layer.borderWidth = 1.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue