'iOS CompositionalLayout change contentOffset by code

I'm trying to use compositional layout for horizontal paging collectionview.

is it possible to change collectionview contentOffset by code?

when I use compositionalLayout, scroll delegate callback not working and collectionview.rx.contentOffset.subscribe don't emit anything and collectionview.setContentOffSet also don't work.



Sources

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

Source: Stack Overflow

Solution Source