Skip to content

SoluLab/SLSearchController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SLSearchController

  • Search from sample fruits list

Search mehtod

  • Put the code for search and change field as per your requirements.
func filterContentForSearchText(_ searchText: String) {
filterdFruits = self.fruits.filter({( fruit : Fruit) -> Bool in
return fruit.name.lowercased().contains(searchText.lowercased())
})
tableView.reloadData()
}

Thanks! @Solulab..

About

- Search from list

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages