BOCircleProgressView
安装
BOCircleProgressView 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中:
pod 'BOCircleProgressView'
用法
在 Storyboard 中创建一个视图并分配给它 BOCircleProgressView 类,或者从代码中(使用给定的框架)初始化 BOCircleProgressView 视图。
要更新百分比,请使用 updateProgress(progress: CGFloat) 函数,参数值在 0 到 1 之间。
您可以更改
barColor(背景圆环层的颜色)progressColor(进度层的颜色)progressLabelColor(显示百分比的标签的颜色)progressLabelFont(显示百分比的标签的字体)invalidPercentageText(如果百分比值为负,出现的文本;默认为 N/A)width(环的宽度)
许可
BOCircleProgressView 在 MIT 许可下提供。有关更多信息,请参阅 LICENSE 文件。
