Skip to content

Commit 921f9b9

Browse files
authored
Fixed crash when scrolling tableView with VoiceOver enabled (#42)
1 parent a54cc44 commit 921f9b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DataSource/DataSource+UITableViewDelegate.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ extension DataSource: UITableViewDelegate {
415415
}
416416

417417
public func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {
418+
guard !indexPath.isEmpty else { return [] }
419+
418420
let cellDescriptor = self.cellDescriptor(at: indexPath)
419421

420422
if let closure = cellDescriptor?.editActionsClosure ?? editActions {

0 commit comments

Comments
 (0)