Merge pull request #124 from theoziran/master

fix specs to multiple validation #123
This commit is contained in:
David Patterson 2016-06-29 23:13:42 -05:00 committed by GitHub
commit f8b2d242cf
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