Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Oct 5, 2015
1 parent afefb99 commit b9719fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Pod/App/Controller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Controller: UIViewController {

var validation = Validation()
validation.required = true
validation.format = "[\\w._%+-]+@[\\w.-]+\\.\\w{2,}"
let inputValidator = InputValidator(validation: validation)
textField.inputValidator = inputValidator

Expand Down Expand Up @@ -53,7 +54,9 @@ class Controller: UIViewController {
textField.formatter = CardExpirationDateFormatter()
textField.placeholder = "Expiration Date (MM/YY)"

let inputValidator = CardExpirationDateInputValidator()
var validation = Validation()
validation.required = true
let inputValidator = CardExpirationDateInputValidator(validation: validation)
textField.inputValidator = inputValidator

return textField
Expand Down

0 comments on commit b9719fd

Please sign in to comment.