UITableView leading swipe actions not available in VoiceOver if there are no trailing swipe actions

Originator:agiletortoise
Number:rdar://46899682 Date Originated:December 21 2018, 8:51 AM
Status:Open Resolved:
Product:iOS+SDK - UIKit Product Version:iOS 11, 12
Classification:UI/Usuability Reproducible:Always
 
Summary:

If a UITableView's delegate provides leading swipe actions for a cell, but returns an empty array of trailing swipe actions, the leading actions are not available for VoiceOver users.

Steps to Reproduce:

- Open attached sample project
- Run on device
- Swipe to right on cell in table view to expose leading swipe actions (Works!)
- Enable VoiceOver
- Select cell in table view. No actions are available on the cell for VoiceOver users

Expected Results:

- The leading swipe actions should be available as custom actions in VoiceOver.

Actual Results:

- The leading swipe actions are NOT available in VoiceOver, unless the cell also has trailing swipe actions.

Version/Build:

Tested on iOS 11 and iOS 12.

Configuration:

Any

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!