ios - Swift Eureka form library - how do I customize a field after the form has rendered -


i have field highlight after validation error. looking @ documentation i'm not sure customize after field has been initialized.

as there yet no direct way validation, easiest way validate row using onchange() callback.

    <<< textrow() {            $0.title = "title"         }.onchange{ row in              if row.value?.containsstring("error") == true {                  row.cell.contentview.layer.bordercolor = uicolor.redcolor().cgcolor                  row.cell.contentview.layer.borderwidth = 2              }         } 

you can other customization there well.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -