I have a UITableViewCell which contains a UICollectionViewCell in each row. This collection view has supplementary views (a header) which appears at the top of the cell.
When navigating with VoiceOver enabled the cells are read in the correct order (header, collectionviewcell1, collectionviewcell2, ...) however, after the view has scrolled (caused by swiping left to right through the cells) the order becomes broken, reading out the UICollectionView cells and then the header.
What could cause this?
I have tried using the UIAccessibilityContainer protocol on the containing UITableViewCell and returning both the number of items in the UICollectionView, plus header, and for the indices returning the header at index 0 and the UICollectionViewCell at the given index. This always highlights the header first, but doesn't navigate through the UICollectionView cells.
I have also tried returning the count as 2 elements (header and UICollectionView) and returning those objects for accessibilityElementAtIndex. This does start with the header, but only reads out the first item in the CollectionView