Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duraidabdul/LocalConsole
In-app console and debug tools for iOS developers
https://github.com/duraidabdul/LocalConsole
debugging swiftui uikit
Last synced: about 2 months ago
JSON representation
In-app console and debug tools for iOS developers
- Host: GitHub
- URL: https://github.com/duraidabdul/LocalConsole
- Owner: duraidabdul
- License: mit
- Created: 2021-05-11T05:23:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-04T23:21:40.000Z (about 2 years ago)
- Last Synced: 2024-08-03T18:12:10.749Z (5 months ago)
- Topics: debugging, swiftui, uikit
- Language: Swift
- Homepage:
- Size: 181 MB
- Stars: 760
- Watchers: 7
- Forks: 40
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swiftui-libraries - LocalConsole - In-app console and debug tools for iOS developers (Debug / Content)
README
# **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 ```LCManager.shared```.
```swift
import LocalConsolelet consoleManager = LCManager.shared
```## **Usage**
Once prepared, the consoleManager can be used throughout your project.
```swift// Activate the console view.
consoleManager.isVisible = true// Deactivate the console view.
consoleManager.isVisible = false
``````swift
// Print items to the console view.
consoleManager.print("Hello, world!")// Clear console text.
consoleManager.clear()// Copy console text.
consoleManager.copy()
``````swift
// Change the console view font size.
consoleManager.fontSize = 5
```