Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pageControl.indicatorSize 无效,activeSize,inactiveSize,indicatorSize都无效! #13

Closed
SmallMX opened this issue Apr 23, 2021 · 3 comments

Comments

@SmallMX
Copy link

SmallMX commented Apr 23, 2021

func jxBanner(pageControl banner: JXBannerType, numberOfPages: Int, coverView: UIView, builder: JXBannerPageControlBuilder) -> JXBannerPageControlBuilder { let pageControl = JXPageControlChameleon() pageControl.contentMode = .right let size = CGSize(width: 3, height: 3) pageControl.activeSize = size pageControl.indicatorSize = size pageControl.inactiveSize = size pageControl.activeColor = UIColor(red: 16, green: 142, blue: 233)! pageControl.inactiveColor = .white pageControl.columnSpacing = 6 pageControl.isAnimation = true builder.pageControl = pageControl builder.layout = { pageControl.snp.makeConstraints { (maker) in maker.left.right.equalTo(coverView).inset(10).priority(750) maker.bottom.equalTo(coverView.snp.bottom).inset(2) maker.height.equalTo(20) } } return builder }

@Coder-TanJX
Copy link
Owner

"pageControl.indicatorSize = size“ ?? indicatorSize不需要设置, 使用约束就行。
builder.layout = {
pageControl.snp.makeConstraints { (maker) in
maker.left.right.equalTo(coverView)
maker.top.equalTo(coverView.snp_bottom).offset(10)
maker.height.equalTo(20)
}
}

@SmallMX
Copy link
Author

SmallMX commented Apr 25, 2021

是activeSize,inactiveSize,indicatorSize都无效!

@SmallMX SmallMX changed the title pageControl.indicatorSize 无效 pageControl.indicatorSize 无效,activeSize,inactiveSize,indicatorSize都无效! Apr 25, 2021
@SmallMX
Copy link
Author

SmallMX commented Apr 25, 2021

minIndicatorSize始终是10,10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants