Hi I'm developing and IOS app with Swift. I'm trying to implement a search function which will filter the result base one what user type in
my function should be like
func filterContentForSearchTex (searchText: String) {
}
For example i have an array restaurants of class Restaurant which have property name, type, location. I want to filter only instance have property that either contain the searchText.
can use any closure of other logic? Any help is much appreciate. Thanks!
Aucun commentaire:
Enregistrer un commentaire