UISwipeActionsConfiguration should allow long press / force touch
Originator: | futuretap | ||
Number: | rdar://34973372 | Date Originated: | 13-Okt.-2017 10:39 AM |
Status: | Open | Resolved: | |
Product: | iOS + SDK | Product Version: | 11.1 beta 2 |
Classification: | Enhancement | Reproducible: | Always |
Summary: In UITableView swipe action buttons it should be possible to detect a long press. This would be useful to execute a different action in this case. Steps to Reproduce: When implementing - (UISwipeActionsConfiguration *)tableView:(UITableView *)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath there's no way to install a long press gesture recognizer because the button object is not exposed. (It *is* exposed in the action handler but that's obviously too late.) Expected Results: UIContextualAction should expose the button in order to let us install custom gesture handlers for long press or force touch. Actual Results: The button is not exposed in the API. Version: 11.1 beta 2 Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!