ApplicationMonitor 0.4.3

ApplicationMonitor 0.4.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2022
SPMSupports SPM

Maintained by muukii, muukii.



ApplicationMonitor

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.