YahyaBagia / YBTextPicker

Yet another text picker / selector written in swift 4.2.
MIT License
46 stars 10 forks source link

How to capture selected values #1

Closed daviddelmonte closed 5 years ago

daviddelmonte commented 5 years ago

Can you please let me know how to select single or multiple values? Many thanks

YahyaBagia commented 5 years ago

Hey @daviddelmonte, did you check the examples in ViewController.swift ?

onCompletion handler of init method gets executed upon clicking done button. It provides you with selectedValues and selectedIndexes arrays. In case of single selection, these arrays will contain single objects.

daviddelmonte commented 5 years ago

I’m sorry, I should’ve closed the issue. Thanks for posting.