Classes
The following classes are available globally.
-
A class that visualises input events as an overlay over your regular UI. To use, simply instantiate it and keep a reference to it around so that it does not get deinited.
You will want to have some way to only instantiate it for test usage, though, such as adding a command-line flag to enable it.
Example usage:
See morevar paws: MonkeyPaws? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { if CommandLine.arguments.contains("--MonkeyPaws") { paws = MonkeyPaws(view: window!) } return true }
Declaration
Swift
public class MonkeyPaws: NSObject, CALayerDelegate