alberdev / AnimatedField

Animated UITextField with check & filter for default types (email, url, password, price, date...) for iOS written in Swift 5
MIT License
315 stars 48 forks source link

Returns placeholder while fetching text value #14

Closed nikeshakya closed 4 years ago

nikeshakya commented 4 years ago

-> I am trying to fetch text value of the field but when its empty .text is returning placeholder value. How can I solve this ?

nikeshakya commented 4 years ago

Also when textView text is same as placeholder text...UI has some glitches....regarding placeholder color and text color

alberdev commented 4 years ago

Fixed! Thank you!!

nikeshakya commented 4 years ago

@alberdev there is still issue with placeholder and pre-setting values... eg. Case 1: If I have a view that requires resetting all the fields to initial value after a work has been done..... I set field.text = "" right ? this doesn't initialize the field... once I focus on that text field and resign first responder, it gives me placeholder with placeholder text.... Case 2: When I try to pre-set the values of fields from my view model, it doesn't give me the correct color of text...text color is placeholder Can you fix this asap ?