SkyFloatingLabelTextField icon indicating copy to clipboard operation
SkyFloatingLabelTextField copied to clipboard

Wrong validation example.

Open skerkewitz opened this issue 8 years ago • 2 comments

Hello,

are you guys aware that the validation example you show under Error state and delegates has little flaw? You validate the text of the textfield before the actual text change and not after the text change. So basically your validation is always one char behind what actual going on in the textfield.

Anyways, keep up the good work! Stefan

skerkewitz avatar Oct 20 '16 12:10 skerkewitz

I'll have a look at this at some point, but if you wanna send a PR after we merge the Swift 3 branch in #67 that'd be awesome

k0nserv avatar Nov 29 '16 10:11 k0nserv

I Have a Problem as well with validation. In my case i have put a validation in one of my skyFloatingLabelTextfield so that the entered text must be at least 5 character long. The Validation is Working fine as expected for the first time , but However, if i delete a character it is still showing the field as correct one. i'd like to immediately show error on this field as soon as the character is deleted. I'm doing the validation using the delegate method as shown in example.

Franknxtn avatar Jul 03 '17 17:07 Franknxtn