Swiftpack.co - janlionly/LogView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
janlionly/LogView
Put your interesting logs into view for showing.
.package(url: "https://github.com/janlionly/LogView.git", from: "1.1.1")

LogView

Version License Platform Swift

Description

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.

Installation

CocoaPods

pod 'LogView'

Swift Package Manager

.package(url: "https://github.com/janlionly/LogView.git", .upToNextMajor(from: "1.1.1")),

Usage

DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
  let logView = LogView.shared
  // switch
  logView.isDebug = true
  
	// 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")
}

Requirements

  • iOS 9.0+
  • Swift 4.2 to 5.0+

Author

Visit my github: janlionly
Contact with me by email: janlionly@gmail.com

Contribute

I would love you to contribute to LogView

License

LogView is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 0
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics