

dependencies: [
.package(url: "https://github.com/William-Weng/WWHighTechView.git", .upToNextMajor(from: "1.1.0"))
]
函数 |
说明 |
start(duration:innerView:repeatFlashCount:highTechColor:) |
启动动画功能 |
ready(duration:highTechColor:) |
等待中 (一直闪烁) |
reset() |
恢复初始状态 |
函数 |
说明 |
highTechView(_:status:) |
HighTechView的动画状态 |
import UIKit
import WWPrint
import WWHighTechView
final class ViewController: UIViewController {
@IBOutlet weak var testLabel: UILabel!
@IBOutlet weak var myHighTechTextView: WWHighTechView!
override func viewDidLoad() {
super.viewDidLoad()
myHighTechTextView.delegate = self
}
@IBAction func test(_ sender: UIBarButtonItem) {
myHighTechTextView.start(innerView: testLabel)
}
}
extension ViewController: WWHighTechViewDelegate {
func highTechView(_ highTechView: WWHighTechView, status: WWHighTechView.Status) {
wwPrint(status)
}
}