Latest 1.0.0
Homepage https://github.com/EMart86/SwiftUIDebugSwiftyBeaver
License MIT
Platforms ios 9.0
Dependencies SwiftUIDebug, SwiftyBeaver
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

SwiftUIDebugSwiftyBeaver is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SwiftUIDebugSwiftyBeaver'

Usage

Setup logger

func setupLogger() {
    let log = SwiftyBeaver.self
    ..
    log.addDestination(SwiftyUIDegubDestination.shared)
}

Show logger

override func motionEnded(_ motion: UIEventSubtype, with event: UIEvent?) {
    if motion == .motionShake {
        SwiftUIDebug.debugController(with: self,
                                     viewModel: SwiftLogViewModel(provider: SwiftyUIDegubDestination.shared))
    }
}

Add some logs

log.debug("Hello World")

Author

Martin Eberl, [email protected]

License

SwiftUIDebugSwiftyBeaver is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwiftUIDebugSwiftyBeaver",
    "version": "1.0.0",
    "summary": "A swifty beaver target for the SwiftUIDebug view controller",
    "description": "A simple to use swifty beaver extension, for the SwiftUIDebug log view controller.",
    "homepage": "https://github.com/EMart86/SwiftUIDebugSwiftyBeaver",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Martin Eberl": "[email protected]"
    },
    "source": {
        "git": "https://github.com/EMart86/SwiftUIDebugSwiftyBeaver.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "SwiftUIDebugSwiftyBeaver/Classes/**/*",
    "dependencies": {
        "SwiftUIDebug": [],
        "SwiftyBeaver": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This