zvonicek / ImageSlideshow

Swift image slideshow with circular scrolling, timer and full screen viewer
MIT License
1.77k stars 473 forks source link

How to limit the dot indicator appear #317

Closed lwirasatria99 closed 5 years ago

lwirasatria99 commented 5 years ago

Can you make the dot indicator just show maybe to 4 or 5 dot, if we have much photo

Show all dot here

Screen Shot 2019-03-31 at 11 54 56
alanrojas08 commented 5 years ago

Maybe you should try this

imageSlideShow.pageIndicator = nil

It will not appear anymore

zvonicek commented 5 years ago

Hi, this is unfortunately not supported on UIPageControl, but you can use label as a page indicator: slideshow.pageIndicator = LabelPageIndicator(frame: .zero). Font and position are configurable.

Or you can implement your own page indicator by implemeting the protocol PageIndicatorView.

Simulator Screen Shot - iPhone XR - 2019-04-14 at 12 19 55

lwirasatria99 commented 5 years ago

Thank you @zvonicek

justdan0227 commented 3 years ago

Can we update the documentation to provide an example with the minimums of :

     imageSlideShow.pageIndicator = LabelPageIndicator(frame: .zero)
     imageSlideShow.pageIndicator?.numberOfPages = imageURLArray.count