8000 GitHub - gumbright/TinyConsole at 1.1.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ℹ️📱 A tiny log console to display information while using your iOS app. Written in Swift 3.

License

Notifications You must be signed in to change notification settings

gumbright/TinyConsole

Repository files navigation

 text

TinyConsole

A tiny log console to display information while using your iOS app. Written in Swift 3.

 text

Usage

Create a TinyConsoleController-Instance and pass your App-ViewController as a rootViewController parameter.

TinyConsoleController(rootViewController: MyMainViewController())

Actions

TinyConsole.shared.print(text: "hello")
TinyConsole.shared.addMarker()
TinyConsole.shared.clear()

Shake to toggle the console view. If you’re using the Simulator, press ⌃ ctrl-⌘ cmd-z.

Implementation Example

Instead of

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    self.window = UIWindow(frame: UIScreen.main.bounds)
    self.window?.rootViewController = MainViewController()
    self.window?.makeKeyAndVisible()
    return true
}

write

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    self.window = UIWindow(frame: UIScreen.main.bounds)
    self.window?.rootViewController = TinyConsoleController(rootViewController: MainViewController())
    self.window?.makeKeyAndVisible()
    return true
}

Hierarchy

 text

Contact

About

ℹ️📱 A tiny log console to display information while using your iOS app. Written in Swift 3.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
334F

Languages

  • Swift 92.3%
  • Ruby 5.1%
  • Objective-C 2.6%
0