zvonicek / ImageSlideshow

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

PageIndicatorPosition is not working correctly for horizontal alignment (left and right) #395

Open kami-mehar38 opened 4 years ago

kami-mehar38 commented 4 years ago

I am using image slide show inside table view but the horizontal alignment is not working properly that is if the number of images are more then there is more padding to the left or right side and if the number of images are less then the indicator even gets hidden.

Code

imageSlider.pageIndicatorPosition = PageIndicatorPosition(horizontal: .right(padding: 0), vertical: .customBottom(padding: 12))

Output

Screen Shot 2020-08-20 at 4 02 55 PM

Here there are 16 total images so the padding from right side is more

Screen Shot 2020-08-20 at 4 03 19 PM

Here there are 2 total images so there is no padding even the page indicator is hidden