page control not updating with large number of pages
codedreamer46 opened this issue · 12 comments
Thanks for the library, page control not laying out properly with large number of pages.
Please suggest a way to handle this issue.
I can not reproduce this issue.
Please tell me the situation in detail.
I ran into the same issue today.
The problem happens when you have a lot of pages and then modify the current page to a value higher than displayCount.
Example:
pg.numberOfPages = 50
pg.updateViewSize()
pg.currentPage = 45
This will not highlight any of the dots.
I was able to use the following workaround for now:
for curIndex in 0..<targetIndex+1 {
pg.currentPage = curIndex
}
I have solved this issue by updating some code in FlexiblePageControl Class.
@ErGopal can you provide your code please? I have same issue.
Hey @avitruk , i can give you some hint that what the library did wrong .
The developer of this library assume that user will swipe the page one by one (Left or Right).
that's it.
@ErGopal thanks)
hai @avitruk page control not updating with large number of pages ,Is there a new solution to this problem? thanks
@doubleYang1020 Hi, actually I didn't use this library anymore, so I don't know)
But the last update from the author was 8 months ago, so I don't think that something changed.
@avitruk You found a new library for pageControl functional?
@NikitaKoltsov nope, the design of our app was changed, so we don't use it