fix specs to multiple validation #123

This commit is contained in:
Theoziran Lima 2016-06-08 10:42:39 -03:00
parent 8f224aba83
commit 62586fe255
1 changed files with 1 additions and 1 deletions

View File

@ -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