count number of matches in swiftUI' filter code example
Example: get item filter count swift
let managersCount = peopleArray.filter { (person : Person) -> Bool in
return person.isManager!
}.count
let managersCount = peopleArray.filter { (person : Person) -> Bool in
return person.isManager!
}.count