Remove a number of uses of forEach.

This commit is contained in:
Brent Simmons
2024-11-17 22:08:44 -08:00
parent 16d8b0066e
commit c1c4c8b1b6
14 changed files with 45 additions and 32 deletions

View File

@@ -802,9 +802,9 @@ private extension FeedViewController {
}
func applyToAvailableCells(_ completion: (FeedTableViewCell, IndexPath) -> Void) {
tableView.visibleCells.forEach { cell in
for cell in tableView.visibleCells {
guard let indexPath = tableView.indexPath(for: cell) else {
return
continue
}
completion(cell as! FeedTableViewCell, indexPath)
}