PageControl
@MainActor
open class PageControl : UIControl
分页控件
-
点视图类
Declaration
Swift
@MainActor open var dotViewClass: (UIView & DotViewProtocol).Type? { get set }
-
点视图句柄
Declaration
Swift
@MainActor open var customDotView: ((UIView) -> Void)?
-
点图片
Declaration
Swift
@MainActor open var dotImage: UIImage? { get set }
-
当前点图片
Declaration
Swift
@MainActor open var currentDotImage: UIImage? { get set }
-
点大小
Declaration
Swift
@MainActor open var dotSize: CGSize { get set }
-
当前点大小,默认zero为点大小
Declaration
Swift
@MainActor open var currentDotSize: CGSize { get set }
-
点颜色
Declaration
Swift
@MainActor open var dotColor: UIColor?
-
当前点颜色
Declaration
Swift
@MainActor open var currentDotColor: UIColor?
-
点间距
Declaration
Swift
@MainActor open var spacingBetweenDots: CGFloat { get set }
-
事件代理
Declaration
Swift
@MainActor open weak var delegate: PageControlDelegate?
-
总页数,默认0
Declaration
Swift
@MainActor open var numberOfPages: Int { get set }
-
当前页数,默认0
Declaration
Swift
@MainActor open var currentPage: Int { get set }
-
单页时是否隐藏,默认false
Declaration
Swift
@MainActor open var hidesForSinglePage: Bool
-
是否resize保持居中,默认true
Declaration
Swift
@MainActor open var shouldResizeFromCenter: Bool
-
Undocumented
Declaration
Swift
@MainActor override public init(frame: CGRect)
-
Undocumented
Declaration
Swift
@MainActor public required init?(coder: NSCoder)
-
Undocumented
Declaration
Swift
@MainActor override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
-
Undocumented
Declaration
Swift
@MainActor override open func sizeToFit()
-
计算指定页数时的显示尺寸
Declaration
Swift
@MainActor open func sizeForNumberOfPages(_ pageCount: Int) -> CGSize