Fix drag drop accessibility

Open
#162 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ios, swift

Research direction

Start by locating CollectionViewHostCell and inspect how it hosts the view or child View. Verify how iOS drag-and-drop accessibility descriptors are currently assigned, then ensure the relevant host and child elements expose the needed descriptors so drag and drop applies; confirm behavior with the project's existing tests or accessibility checks if available.

Written by the indexing model from the issue text.

Description

From internal comment/bug:

iOS assigns accessibilityDragSourceDescriptors and accessibilityDropPointDescriptors to the cell, but doesn't look up the hierarchy from elements to their ancestors to see if drag and drop applies, If this cell were directly isAccessibilityElement = YES then this would not be a problem, but since we're hosting something else which (may be) an accessibility element, we need to find it and copy over the location descriptors so drag&drop applies.

So CollectionViewHostCell needs to set these properties on its host view (and maybe on the child View itself too?)

Dominant language
Swift
Stars
113
Forks
19
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dropbox/pilot

All issues in dropbox/pilot

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.