I'm trying to make an infinite carousel of pages so you could swipe through the five or so pages and when you get to the fifth one, the next swipe takes you back to the first. I've been trying to manipulate PageComponent into doing this and not having much luck.
I've tried adding new copies of the pages, but you can only add dynamically at the end. I've tried reordering the array in pages.content.subLayers using shift, push, pop, etc. but even with a call to updateContent, the page component doesn't seem to like what I'm doing.
Has anyone successfully reordered the pages of a page component? Or is there another angle I can take to making the pages loop?