FSPagerView icon indicating copy to clipboard operation
FSPagerView copied to clipboard

Layout issue when selected indicator width bigger than (itemSpacing * 2 + itemwidth)

Open zhaozzq opened this issue 5 years ago • 2 comments

pageControl.setImage(UIImage(named: "pagecontrol_current"), for: .selected) //27*6
pageControl.setImage(UIImage(named: "pagecontrol_normal"), for: .normal) //6*6
pageControl.itemSpacing = 5
pageControl.numberOfPages = 5
pageControl.currentPage = 1

layout result IMG_4378.jpg

pageControl.setPath(UIBezierPath(ovalIn: CGRect(x: 0, y: 0, width: 6, height: 6)), for: .normal)
pageControl.setPath(UIBezierPath(roundedRect: CGRect(x: 0, y: 0, width: 27, height: 6), cornerRadius: 3), for: .selected)
pageControl.setFillColor(UIColor(rgb: 0xb2b2b2), for: .normal)
pageControl.setFillColor(ColorPalette.HYBlue, for: .selected)
pageControl.itemSpacing = 5
pageControl.numberOfPages = 5
pageControl.currentPage = 1

layout result IMG_4377.jpg

zhaozzq avatar Jun 14 '19 05:06 zhaozzq

please support this, i want to use same you too.

thepinyo avatar Nov 18 '19 05:11 thepinyo

me too

Lee0820 avatar May 21 '21 06:05 Lee0820