Skip to content

It logs messages to a debugging console directly on the apps screen

License

Notifications You must be signed in to change notification settings

fischu/onScreenConsole

Repository files navigation

onScreenConsole

A debugging console directly on the app's screen. There were times during development of certain apps when I couldn't use Xcode's debugger console so an on screen one made perfect sense.

License Swift Platform

Setup

Compatibility

Using CocoaPods

  1. Add the pod OnScreenConsole to your Podfile.
pod 'OnScreenConsole'
  1. Run pod install from Terminal, then open your app's .xcworkspace file to launch Xcode.
import OnScreenConsole

That's it - now go debug your app whenever wherever!

Usage

Sample Code (Swift)

Initialize:

var console = OnScreenConsole(frame: CGRect(x: 10, y: 10, width: 200, height: 200)) 
// make sure to insert the view over you own UI in order to see it
view.insertSubview(console, at: 10)

Customize:

// Enable row numbers
console.showRowNumber = true
        
// Customization
console.backgroundColor = .clear
console.textColor = .green
console.font = UIFont(name: "Montserrat", size: 20)

Use:

console.newLineWith("this is not an error")

Meta

Designed & built by Mihai Fischer (@fischu). Distributed with the Apache License 2.0 license.

About

It logs messages to a debugging console directly on the apps screen

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published