Skip to content

tomaszpoliszuk/LocalConsole

 
 

Repository files navigation

LocalConsole

Welcome to LocalConsole! This Swift Package makes on-device debugging easy with a convenient PiP-style console that can display items in the same way print() will in Xcode. This tool can also dynamically display view frames and restart SpringBoard right from your live app.

Setup

  1. In your Xcode project, navigate to File > Swift Packages > Add Package Dependancy...

  2. Paste the following into the URL field: https://github.com/duraidabdul/LocalConsole/

  3. Once the package dependancy has been added, import LocalConsole and create an easily accessible global instance of Console.shared.

import LocalConsole

let localConsoleManager = LCManager.shared

Usage

Once prepared, the localConsole can be used throughout your project.

// Show the console view.
localConsoleManager.isVisible = true

// Hide the console view.
localConsoleManager.isVisible = false
// Print items to the console view.
localConsoleManager.print("Hello, world!")

// Clear console text.
localConsoleManager.clear()

// Copy console text.
localConsoleManager.copy()
// Change the console view font size.
localConsoleManager.fontSize = 5

To-Do

  • Support for iOS 13
  • Screen edge console hiding
  • Make console view reactive to landscape/portrait switch

About

In-app console and debug tools for iOS developers.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%