Create easy your Text Fields!
You can validate this form
Use a view and use custom class : TextFieldFormEasy
Write Error Text, image valid, background color, Text Color etc..
You need Delegate TextFieldFormEasyDelegate
TextFieldFormEasyDelegate
- Validate postal code
func validateCodigoPostal(_field: TextFieldFormEasy, codigoPostalValidate result: Bool, mensajeError: String?)
- textFieldDidEndEditing
func TextFieldValidate (_field: TextFieldFormEasy, errorMessage errorMensaje: String? )
@IBOutlet weak var nombre: TextFieldFormEasy!
override func viewDidLoad() {
super.viewDidLoad()
nombre.delegate = self
nombre.mode = TextFieldFormEasyType.name.rawValue
// Do any additional setup after loading the view.
}
Free Software, Hell Yeah!