Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.46 KB

README.md

File metadata and controls

56 lines (37 loc) · 1.46 KB

Juno

Logger for iOS platform which allows you to see/display all print logs on UI component while you are using the app. Cool right?

Swift Version

Integration

CocoaPods

You can use CocoaPods to install Juno by adding it to your Podfile:

platform :ios, '11.0'
use_frameworks!

target 'MyApp' do
  pod 'Juno', :git => 'https://github.com/emreond/Juno.git', :tag => '0.0.2'
end

Run pods install or pods update to intagrate pods with your project.

How Does It Work:

Initialize the Juno just before didFinishLaunchWithOptions function return in AppDelegate and see print your logs with Juno.print() and see the magic!

How To Use It

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    // Override point for customization after application launch.
        
    let bounds = UIScreen.main.bounds
    window = UIWindow(frame: bounds)
    let mainController = ViewController()
    window?.rootViewController = UINavigationController(rootViewController: mainController)
    window?.makeKeyAndVisible()

    #if DEBUG
    Juno()
    #endif
    return true
}
    

Run below code to print

Juno.print("Console Log Example")

How To Run Example

Just select JunoExample scheme and hit run!