Skip to content

Commit

Permalink
Adds new delegate methods to ASCommonTableViewDelegate for swipe (#1694)
Browse files Browse the repository at this point in the history
- I added new delegate methods to ASCommonTableViewDelegate:
  - tableView(_:leadingSwipeActionsConfigurationForRowAt:)
  - tableView(_:trailingSwipeActionsConfigurationForRowAt:)
- And marked old method as deprecated since iOS 13.
  • Loading branch information
SashaZolotarev committed Mar 30, 2020
1 parent 70f61e9 commit 9d75104
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/ASTableViewProtocols.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ NS_ASSUME_NONNULL_BEGIN
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
- (nullable NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath;
#if TARGET_OS_IOS
- (nullable NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath;
- (nullable NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath API_DEPRECATED_WITH_REPLACEMENT("tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:", ios(8.0, 13.0));
- (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView leadingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath API_AVAILABLE(ios(11.0));
- (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath API_AVAILABLE(ios(11.0));
#endif
- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath;

Expand Down

0 comments on commit 9d75104

Please sign in to comment.