Skip to content

Commit

Permalink
<update> (配置对象): 公开配置属性
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengzeqin007 committed Oct 19, 2021
1 parent 3378647 commit 1f4556f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ZQEndlessPageControl.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|
s.name = 'ZQEndlessPageControl'
s.version = '0.2.0'
s.summary = '自定义 iOS14 PageControl 控件新功能'
s.summary = '自定义iOS14 PageControl 控件新功能'
s.homepage = 'https://github.com/zeqinjie/ZQEndlessPageControl'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ import UIKit

public struct ZQEndlessPageControlConfiguration {
/// 总共点个数
var numberOfDots: Int
public var numberOfDots: Int
/// 支持最大展示多少个点
var maxNumberOfDots: ZQEndlessPageControlMaxNumberOfDots
public var maxNumberOfDots: ZQEndlessPageControlMaxNumberOfDots
/// 选择点的颜色
var selectedDotColor: UIColor
public var selectedDotColor: UIColor
/// 未选择点的颜色
var unselectedDotColor: UIColor
public var unselectedDotColor: UIColor
/// 点大小
var dotSize: CGFloat
public var dotSize: CGFloat
/// 点间隙
var spacing: CGFloat
public var spacing: CGFloat
/// 未选中中号缩放系数
var mediumScale: CGFloat
public var mediumScale: CGFloat
/// 选中的缩放系数
var selectedScale: CGFloat
public var selectedScale: CGFloat
/// 未选中最小的点的缩放系数
var smallScale: CGFloat
public var smallScale: CGFloat
/// 点边框色
var dotBorderColor: UIColor?
public var dotBorderColor: UIColor?
/// 点边框色大小
var dotBorderWidth: CGFloat?
public var dotBorderWidth: CGFloat?
/* 📢注意当设置了 selectedIndicatorImage & unselectedIndicatorImage 时候,不展示默认的圆点*/
/// 当前选中展示图片
var selectedIndicatorImage: UIImage?
public var selectedIndicatorImage: UIImage?
/// 当前未选中展示图片
var unselectedIndicatorImage: UIImage?
public var unselectedIndicatorImage: UIImage?

public init(
numberOfDots: Int,
Expand Down

0 comments on commit 1f4556f

Please sign in to comment.