SwiftSuccessCheck 1.0

SwiftSuccessCheck 1.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最新发布2017年9月
SwiftSwift 版本3.0
SPM支持 SPM

hmusaddiquie27 维护。



  • Musaddiquie Husain

SwiftSuccessCheck

使用 Swift 3 开发的带有完成块的成功动画勾号。

要求

  • iOS 8 及以上。
  • Xcode 8 及以上

将 SwiftSuccessCheck 添加到您的项目

方法 1:(使用 Pods)

  1. 在您的 Podfile 中添加 SwiftSuccessCheck 的 pod 条目。
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'SwiftSuccessCheck'
  1. 通过运行 pod install 安装 pod。

方法 2:(源文件)

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 许可证的条款和条件分发。