There are two issues, the first comes as a yellow message (warning):
var parameters are deprecated and will be removed in Swift3"<BR> If I fix it, the next line "searchText = ...."
The second comes with a red message (error)
cannot assign to value: searchText is a let constant
Here is the code:
func filterContentForSearchText(var searchText: String, scope: NSInteger) {
searchText = searchText.lowercaseString;
}