ios – Swift – Filtering UITableViewCells based mostly on a number of situations

[ad_1]

I’m new to programming and I´m designing an app that comprises a UITableView that fetches information from FireStore.

Every cell comprises information that was beforehand chosen by the person when importing an commercial to the database. For instance: Sort (3 choices), Color (5 choices), Metropolis (25 choices) and so forth.

I want to add a “filter” button on the prime of the display screen the place the person can choose a number of situations to filter the cells. For instance, present solely cells that match: giant, yellow, no matter metropolis.

Thus far I may solely discover tutorials so as to add a searchBar, however this doesn´t work for me, as customers don’t must kind a phrase, however moderately choose from predefined choices.

Might you assist me by telling me what’s the best approach to obtain this?. I want to have one thing like relationship apps have for instance, the place you may choose age, gender, peak and many others.

Thanks so much prematurely.

[ad_2]

Leave a Reply