标签:
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) } }
标签:
原文地址:http://www.cnblogs.com/argenbarbie/p/5726730.html