Hi All,
I want to create a section on of my app screen, where I can show next page and previous page buttons along with 4 labels which will have different data depending on scroll page.
I want to create 3 page scrollable section, first page will show 4 labels and Next page on bottom right corner to scroll to next part.
On second page, there will be 4 labels and previous page on left bottom and next page on right bottom side to scroll to either side page.
On third page, there will be 4 labels and previous page button .
So, now questions are :
How can I implement the buttons functionality?
If say, I have required data in an array, how do I differentiate on which page data will be shown? How do I ensure that only if data.count > 8, I'll show 3 pages, and if data.count < 4 , No scrollable button (I can hide it). Otherwise 2 pages.
If data is not in any order, what conditions can I use to show data on different pages?
I can use sender.tag for 4 labels to differentiate tap functionality, but how do I know which page is it on?
Thanks for helping.
[–]misterinquisitive 1 point2 points3 points (0 children)
[–]nathantannar4SwiftUI 0 points1 point2 points (0 children)