uicollectionview - iOS Accessibility for CollectionView in a TableViewCell -


i'm working on accessibility of our project, , here uicollectionview put custom uitableviewcell. collectionview has tens of cells arranged in multiply rows rather 1 row.

it raises issue when have voiceover on , move focus between collectionviewcells swiping left or right, system thought swiping between tableviewcells, since collectionview in tableview, , contentoffset of tableview changed according tableviewcell size, instead of collectionviewcell size.

collectionview put in the tableview , don't think can change this. wondering has met case before , there anyway make collectionview accessible normal?

this known bug in apple's sdk (sorry, don't have bug report reference) when nesting collectionview inside tableview. after experimentation, able work around using uiview wrapper collectionview before adding uitableviewcell's .contentview

    uiview *wrapperview = [[uiview alloc] initwithframe:cell.contentview.bounds];     wrapperview.accessibilityelements = @[collectionview];     [cell.contentview addsubview:wrapperview];     [wrapperview addsubview:collectionview]; 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -