-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix (again) willBeginEditingRowAt/didEndEditingRowAt changes
TLDR: Changed the willBeginEditingRowAt/didEndEditingRowAt delegate methods by adding an orientation parameter to differentiate them from the equivalent UITableView methods. This change addresses the issue introduced when adding willBeginEditingRowAt/didEndEditingRowAt delegate methods to SwipeTableViewCellDelegate. Since these method names matched the existing UITableViewDelegate, it causes the UITableView to enter standard editing mode. The UITableViewController implementation of the delegate methods call setEditing on the UIViewController (itself) which feeds back into UITableView. UITableView uses private flags to differentiate the difference between "editingForSwipe" and regular "editing". But since SwipeCellKit initiated the swipe, it doesn't know its already in "editingForSwipe" mode and assumes standard editing mode, which obviously conflicts with the actual swipe.
- Loading branch information
Showing
3 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters