FSPagerView icon indicating copy to clipboard operation
FSPagerView copied to clipboard

pagecontrol居中对齐,实际并未居中对齐,左右间隔不一样

Open Erikess opened this issue 3 years ago • 1 comments

原因 源码: let amplitude = CGFloat(self.numberOfPages/2) * diameter + spacingCGFloat((self.numberOfPages-1)/2) 应该改为 let amplitude = CGFloat(self.numberOfPages)/2.0 * diameter + spacingCGFloat((self.numberOfPages-1))/2.0; 应该提前类型转换,避免误差

Erikess avatar Apr 27 '21 07:04 Erikess

作者呢?更新一下吧。。。

FanYouXin avatar Nov 13 '23 09:11 FanYouXin