We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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 }
The text was updated successfully, but these errors were encountered:
"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) } }
Sorry, something went wrong.
是activeSize,inactiveSize,indicatorSize都无效!
minIndicatorSize始终是10,10
No branches or pull requests
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 }
The text was updated successfully, but these errors were encountered: