Latest 1.3.2
Homepage https://github.com/Cosmo/TinyConsole
License MIT
Platforms ios 8.0
Authors

TinyConsole

Platform iOS
Swift 3 compatible
Carthage compatible
License MIT

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

Usage

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

TinyConsoleController(rootViewController: MyMainViewController())

Actions

// Print message
TinyConsole.print("hello")

// Print messages any color you want 
TinyConsole.print("green text", color: UIColor.green)

// Print a red error message 
TinyConsole.error("something went wrong")

// Print a marker for orientation
TinyConsole.addMarker()

// Clear console
TinyConsole.clear()

Gestures

  • Swipe from Left to Right: Add marker
  • 2 Finger Tap: Add custom log entry
  • 3 Finger Tap: Show Action Sheet to Clear Console and Send Mail
  • Shake to toggle the console view. If you’re using the Simulator, press ⌃ ctrl⌘ cmdz.

Implementation Example

Instead of

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

write

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

or checkout the example project included in this repository.

Demo

TinyConsole

Requirements

  • Xcode 8
  • Swift 3
  • iOS 8 or greater

Installation

Carthage

Add this to your Cartfile:

github "Cosmo/TinyConsole"

CocoaPods

Add this to your Podfile:

pod 'TinyConsole'

Manually

Just drag the source files into your project.

Hierarchy

TinyConsole

Contact

License

TinyConsole is released under the MIT License.

Latest podspec

{
    "name": "TinyConsole",
    "version": "1.3.2",
    "summary": "A tiny log console to display information while using your iOS app. Written in Swift 3.",
    "description": "Shows a console view on the lower bottom of your screen to display debug information of your running app.",
    "homepage": "https://github.com/Cosmo/TinyConsole",
    "screenshots": "https://raw.githubusercontent.com/Cosmo/TinyConsole/master/TinyConsole-Demo.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Devran u00dcnal": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Cosmo/TinyConsole.git",
        "tag": "1.3.2"
    },
    "social_media_url": "https://twitter.com/maccosmo",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "TinyConsole/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This