in FriendlyEats/RestaurantsTableViewController.swift [212:226]
func query(withCategory category: String?, city: String?, price: Int?, sortBy: String?) -> Query {
var filtered = baseQuery()
if category == nil && city == nil && price == nil && sortBy == nil {
stackViewHeightConstraint.constant = 0
activeFiltersStackView.isHidden = true
} else {
stackViewHeightConstraint.constant = 44
activeFiltersStackView.isHidden = false
}
// Sorting and Filtering Data
return filtered
}