Skip to content

Commit

Permalink
Fixed crash when scrolling tableView with VoiceOver enabled (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoimer authored May 8, 2024
1 parent a54cc44 commit 921f9b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DataSource/DataSource+UITableViewDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ extension DataSource: UITableViewDelegate {
}

public func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {
guard !indexPath.isEmpty else { return [] }

let cellDescriptor = self.cellDescriptor(at: indexPath)

if let closure = cellDescriptor?.editActionsClosure ?? editActions {
Expand Down

0 comments on commit 921f9b9

Please sign in to comment.