var allFilters = self.filtersContainer?.filters ?? [OpalFilter]() if let sorter = filtersContainer?.sorter { if allFilters.contains ({ (filter: OpalFilter) -> Bool in if filter.groupName == sorter.groupName && filter.optionType == sorter.optionType { return true } else { return false } }) == false { allFilters.append(sorter) } }
时间: 2024-10-11 04:48:51