xmartlabs / XLForm

XLForm is the most flexible and powerful iOS library to create dynamic table-view forms. Fully compatible with Swift & Obj-C.
MIT License
5.77k stars 953 forks source link

trailingSwipeActionsConfigurationForRowAtIndexPath never called #1079

Open colinrblake opened 3 years ago

colinrblake commented 3 years ago

I've implemented - (UISwipeActionsConfiguration *)tableView:(UITableView *)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(nonnull NSIndexPath *)indexPath and swipe as much as I can but it's never called. I've tried with and without XLFormSectionOptionCanDelete on the XLFormSectionDescriptor and it makes no difference. Does XLForm do something to preclude swipe actions?

UPDATE: If i use XLFormSectionOptionCanDelete, then when I click on the delete icon on the left side of the cell, my swipe action method IS called. But I still can't use a swipe gesture to make the swipe options appear.