FSPagerView
FSPagerView copied to clipboard
Incorrect center alignment
self.pageControl.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter; let amplitude = CGFloat(self.numberOfPages/2) * diameter + spacing*CGFloat((self.numberOfPages-1)/2) 1.Scale indicator maximum 2.make a simple line view with obvious color 3.center indicator isn't in center 4.replace result with CGFloat(self.numberOfPages * Int(diameter) + Int(spacing) * (self.numberOfPages - 1)) / 2