'Scrollview content offset is wrong with voiceover ios

Hi i am having a requirement to show label, horizontal collection view, view, vertical collection view which contains 4 cells on scrollview.

There is a header view at top.

Scrollview is working fine in normal but when enable voice over that time focus on accessibility elements are working fine from top to bottom.

But when go from bottom to top top label is focusing but its getting hide below header view. When i check scroll view content offset its giving as (0,94) instead of (0,0).

Can some one help me. Why its behaving like this what can do to fix scrollview content offset properly.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source