Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zeqinjie/ZQEndlessPageControl
Browse files Browse the repository at this point in the history
# Via GitHub
* 'master' of github.com:zeqinjie/ZQEndlessPageControl:
  文档说明
  Update README.md
  • Loading branch information
zhengzeqin007 committed Sep 30, 2021
2 parents 2ff0e37 + 5e6d18f commit 7abd3a3
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
[![License](https://img.shields.io/cocoapods/l/ZQEndlessPageControl.svg?style=flat)](https://cocoapods.org/pods/ZQEndlessPageControl)
[![Platform](https://img.shields.io/cocoapods/p/ZQEndlessPageControl.svg?style=flat)](https://cocoapods.org/pods/ZQEndlessPageControl)

## Example
## 功能

- 为了适配 iOS14 的 pageControl 自定义的控件 ☑️
自定义 iOS14 PageControl 控件新功能 ☑️
- 最大展示个数 ☑️
- 设置大小、间隙、背景颜色 ☑️
- 设置边框大小,颜色 ☑️
- 设置大、中、小,三种状态的缩放系数 ☑️
Expand All @@ -17,7 +18,7 @@

<img src="https://github.com/zeqinjie/ZQEndlessPageControl/blob/master/assets/1.gif" width="444" height="960" align="middle"/>

## USE
## 使用

> 配置对象
Expand Down Expand Up @@ -59,8 +60,6 @@ import ZQEndlessPageControl
fileprivate let indicatorPageControl1: ZQEndlessPageControlIndicator = ZQEndlessPageControlIndicator()
self.view.addSubview(indicatorPageControl1)
indicatorPageControl1.snp.makeConstraints { (make) in
make.width.equalTo(100)
make.height.equalTo(50)
make.center.equalToSuperview()
}

Expand All @@ -75,8 +74,6 @@ indicatorPageControl1.setup(configuration: indicatorConfigure)
if #available(iOS 13.0, *) {
self.view.addSubview(indicatorPageControl3)
indicatorPageControl3.snp.makeConstraints { (make) in
make.width.equalTo(300)
make.height.equalTo(50)
make.centerX.equalToSuperview()
make.top.equalTo(self.indicatorPageControl2.snp.bottom).offset(10)
}
Expand All @@ -90,11 +87,11 @@ if #available(iOS 13.0, *) {
unselectedIndicatorImage: UIImage(systemName: "moon.fill")
)

indicatorPageControl3.setup(configuration: indicatorConfigure)
indicatorPageControl3.setup(configuration: indicatorConfigure)
}
```

## Installation
## 安装

ZQEndlessPageControl is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
Expand Down

0 comments on commit 7abd3a3

Please sign in to comment.