Skip to content

Instantly share code, notes, and snippets.

@noefroidevaux
noefroidevaux / Project.swift
Created September 7, 2017 13:27
SearchPushRow for Eureka 3.0 (Swift 3.1)
// Add SearchItem protocol to the model (here Project)
extension Project: SearchItem {
func matchesSearchQuery(_ query: String) -> Bool {
return name.lowercased().contains(query.lowercased())
}
}