Skip to content

Instantly share code, notes, and snippets.

@KrauserHuang
Created March 18, 2022 01:22
Show Gist options
  • Save KrauserHuang/164122539825078b31a8e34134e047b4 to your computer and use it in GitHub Desktop.
Save KrauserHuang/164122539825078b31a8e34134e047b4 to your computer and use it in GitHub Desktop.
filteredItems.removeAll()
for item in items {
if item.product_type == categories[indexPath.item].productType {
filteredItems.append(item)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment