LogView is a debugging tool view, you can put your interesting logs into view for showing, it support to pan for moving and show/hide using your two finger double tap.
pod 'LogView'
- iOS: Open Xcode, File->Swift Packages, search input https://github.com/janlionly/LogView.git, and then select Version Up to Next Major 1.1.2 < .
- Or add dependencies in your
Package.swift
:
.package(url: "https://github.com/janlionly/LogView.git", .upToNextMajor(from: "1.1.2")),
// switch
LogView.shared.isDebug = true
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
let logView = LogView.shared
// optional: your can customize initial frame
logView.frame = CGRect(x:0, y:0, width: 200, height: 300)
// make logView visible. Just call it only if the logView donot show.
logView.makeVisible()
// append your logs
logView.append(log: "REQUEST API: xxx")
}
- iOS 9.0+
- Swift 4.2 to 5.0+
Visit my github: janlionly
Contact with me by email: janlionly@gmail.com
I would love you to contribute to LogView
LogView is available under the MIT license. See the LICENSE file for more info.