Latest 0.3.2
Homepage https://github.com/muukii/ApplicationMonitor
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Setup

Define receive report object

public protocol ViewControllerMonitorReportProtocol {

    func viewDidLoad(viewController: UIViewController)
    func viewWillAppear(viewController: UIViewController)
    func viewDidAppear(viewController: UIViewController)
    func viewWillDisappear(viewController: UIViewController)
    func viewDidDisappear(viewController: UIViewController)
}

struct Report: ViewControllerMonitorReportProtocol {

    func viewDidLoad(viewController: UIViewController) {
        print("[ViewDidLoad] : (viewController)")
    }

    func viewWillAppear(viewController: UIViewController) {
        print("[ViewWillAppear] : (viewController)")
    }

    func viewDidAppear(viewController: UIViewController) {
        print("[ViewDidAppear] : (viewController)")
    }

    func viewWillDisappear(viewController: UIViewController) {
        print("[ViewWillDisappear] : (viewController)")
    }

    func viewDidDisappear(viewController: UIViewController) {
        print("[ViewDidDisappear] : (viewController)")
    }
}

Set

ApplicationMonitor.setViewControllerMonitorReport(Report())

Requirements

iOS8.0+

Installation

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

pod "ApplicationMonitor"

Author

muukii, [email protected]

License

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

Latest podspec

{
    "name": "ApplicationMonitor",
    "version": "0.3.2",
    "summary": "Monitor life-cycle for UI (use method swizzling)",
    "homepage": "https://github.com/muukii/ApplicationMonitor",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "muukii": "[email protected]"
    },
    "source": {
        "git": "https://github.com/muukii/ApplicationMonitor.git",
        "tag": "0.3.2"
    },
    "social_media_url": "https://twitter.com/muukii0803",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Sources/ApplicationMonitor/**/*.swift",
    "pushed_with_swift_version": "4"
}

Pin It on Pinterest

Share This