I'm very new to iOS
and accessibility but I am trying to write an iOS
app for visually impaired people that will also be user-friendly for sighted people.
It involves the moving of cells from one UICollectionView
to another. The second UICollectionView
is like a big square grid of cells and I have implemented drag and drop for sighted people. However, for blind people, I need some other way to move the cells as my testers, who are blind, tell me it's unlikely for them to use a drag and drop app.
The problem is if I turn VoiceOver on, the double tap gesture does nothing. If I double tap and hold, it selects a cell to be dragged, rather than just selecting an item to be moved and waiting to be told where to move it.
Is there some way to have drag and drop for when VoiceOver is off plus a different approach to moving the same item if VoiceOver on?
You can find some information about Drag & Drop using VoiceOver in the What's New in Accessibility
WWDC 2017 video with a perfectly detailed summary.
accessibilityDragSourceDescriptors
and accessibilityDropPointDescriptors
seem to be the most important variables to be used.
I never implemented it myself but this site is the first place I would go to find the proper way to do it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.