FlexiblePageControl
FlexiblePageControl copied to clipboard
page control not updating with large number of pages
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
}
Hello @shima11
i have found same issue today
even i have tried in your example too , in your example i have taken 15 images and when i am trying to set the currentPage to 14 in @IBAction (Just For check the issue) then the PageControl will disappear .
let me know if you have found the same issue
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