WWHighTechView

Swift-5.6 iOS-14.0 Swift Package Manager-SUCCESS LICENSE

Introduction - 简介

WWHighTechView

Installation with Swift Package Manager

dependencies: [
    .package(url: "https://github.com/William-Weng/WWHighTechView.git", .upToNextMajor(from: "1.1.0"))
]

可用函数 - Function

函数 说明
start(duration:innerView:repeatFlashCount:highTechColor:) 启动动画功能
ready(duration:highTechColor:) 等待中 (一直闪烁)
reset() 恢复初始状态

WWHighTechViewDelegate

函数 说明
highTechView(_:status:) HighTechView的动画状态

Example

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)
    }
}