FSPagerView
FSPagerView copied to clipboard
FSPageControl is not being centered correctly when contentHorizontalAlignment is set as .center
Hi,
As I wrote in the title, after set the contentHorizontalAlignment as .center, if you look carefully at the spaces at the left & right sides, or measure the sizes using a ruler app, you'll find the lengths are different. You can easily try at the sample app.
My current workaround is to add an additional padding to achieve a balance:
self.pageControl.contentInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 5)
Would be better if the library could do that by itself.
Still an issue to date.
it is work for me