NowYou

@objc
public final class NowYou : NSObject

NowYou(SeeMe): The main entry point to the view tracking framework.

Provides access of the tracking framework to the outside world and also handles the current state of the tracking framework.

Important

The framework needs to be initialised by calling NowYou.seeMe() before adding any view for tracking.
  • Enables view tracking

    This method should be called after the app is launched and before starting view tracking.

    Important

    None of the calls to trackView() will go through before calling NowYou.seeMe()

    Declaration

    Swift

    @objc
    public static func seeMe()
  • Displays view tracker debug options

    On calling NowYou.debug() a debug menu will pop up on the screen, which can then be used to draw overlays on top of views being tracked and selective enable tracking only for the views of interest. Important information about the selected views like the current frame and viewability percentage will then start popping up in the console logs.

    Important

    This method is only available in DEBUG mode

    Note

    All the views will still be tracked by the framework but the callback will be provided only for the selected views

    Declaration

    Swift

    @objc
    public static func debug()