Hi Team, I have a collectionview with horizontal scroll direction. Paging is enabled on groups. In visible area, I am showing cell which has 0.89 % of container width, and the rest width will have the peek of next cell. Also I have a page control for interacting with collection view navigate to next or previous page. I am listening to page control value change, and calling scrollToItem for the item indexpath, but this is not working for this layout. But if I had my container visible area occupying complete one cell width, then the scrollToItem works. I tried with scrollToVisibleRect and also setContentOffset, but none of them worked. Note: I am using composition layout.
If anyone had faced this issue before, or aware of any solution, please let me know.
Thank you Vinay