Получите количество фильтров предметов Swift
let managersCount = peopleArray.filter { (person : Person) -> Bool in
return person.isManager!
}.count
Mobile Star
let managersCount = peopleArray.filter { (person : Person) -> Bool in
return person.isManager!
}.count