WWLogView
一个简单的日志窗口版本(上传至 Cocoapods)
使用示例
import UIKit
import WWLogView
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
_ = WWLogView.shared
return true
}
}
import UIKit
import WWLogView
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func showWindow(_ sender: UIButton) {
let time = Date()
WWLog(time.description(with: Locale.init(identifier: "zh-TW")))
}
}