项目
在 GitHub 查看
duraidabdul/LocalConsole
关于
面向 iOS 开发者的应用内控制台和调试工具
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
In your Xcode project, navigate to File > Swift Packages > Add Package Dependancy...
Paste the following into the URL field: https://github.com/duraidabdul/LocalConsole/
Once the package dependancy has been added, import LocalConsole and create an easily accessible global instance of
LCManager.shared.
import LocalConsole
let consoleManager = LCManager.shared
Usage
Once prepared, the consoleManager can be used throughout your project.
// Activate the console view.
consoleManager.isVisible = true
// Deactivate the console view.
consoleManager.isVisible = false
// Print items to the console view.
consoleManager.print("Hello, world!")
// Clear console text.
consoleManager.clear()
// Copy console text.
consoleManager.copy()
// Change the console view font size.
consoleManager.fontSize = 5
探索相关项目
加载中…