AWStepBar
AWStepBar 是一个 UI 组件,可以让您在应用中集成步骤进度界面。
概述
外观
幕后
🔶 要求
- iOS 9.0+
- Swift 5.0
👨💻 使用
let stepBar = AWStepBar()
stepBar.dataSource = self
stepBar.stepBarForegroundColor = .green
stepBar.stepBarBackgroundColor = .lightGray
stepBar.dotColor = .gray
stepBar.dotSelectedColor = .white
stepBar.set(step: 1, animated: false)
数据源
public protocol AWStepBarDataSource: class {
func numberOfSteps(in stepBar: AWStepBar) -> Int
}
安装
CocoaPods
pod 'AWStepBar'
Carthage
github "Aymenworks/AWStepBar"
授权
AWStepBar 以 MIT 许可证发布。