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

how to get Date value after user taps "done" #10

Closed SogoGolf closed 4 years ago

SogoGolf commented 4 years ago

hi, how can we get the actual Date returned after a user taps on "DONE" after they select a date ? which callback holds that value ?

alberdev commented 4 years ago

You can use animatedFieldDidEndEditing(_ animatedField: AnimatedField) delegate method and get your animatedField date value with dateAnimatedField.text. Use your own format using datepicker type and configure mode, default date, min date, max date, choose text and date format