测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最新发布 | 2017年9月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 hmusaddiquie27 维护。
使用 Swift 3 开发的带有完成块的成功动画勾号。
SwiftSuccessCheck
的 pod 条目。source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'SwiftSuccessCheck'
pod install
安装 pod。Alternatively, you can directly clone the complete project from `https://github.com/hmusaddiquie27/SwiftSuccessCheck.git` add copy `SuccessCheck.swift` file under the folder of your project.
// Create instance of SuccessCheck in your controller's viewDidLoad() method
var scView = SuccessCheck(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
// Add to the parent view
self.view.addSubview(scView)
// Animate the tick process
scView.initWithTime(withDuration: duration, bgCcolor: .orange, colorOfStroke: .white, widthOfTick: 5) {
//do additional work after completion
}
请参阅示例项目 SwiftSuccessCheckExaple
了解详细信息。
此代码根据 MIT 许可证的条款和条件分发。