SyntaxFix
Write A Post
Hire A Developer
Questions
I think this would be a better way to do it in Swift:
func filterContentForSearchText(searchText:NSString, scope:NSString) { searchResults = recipes.filter { name.rangeOfString(searchText) != nil } }