InAppViewDebugger
@objc
public final class InAppViewDebugger : NSObject
Exposes APIs for presenting the view debugger.
-
Takes a snapshot of the application’s key window and presents the debugger view controller from the root view controller.
Declaration
Swift
@objc public class func present()
-
Takes a snapshot of the specified window and presents the debugger view controller from the root view controller.
Declaration
Swift
@objc public class func presentForWindow(_ window: UIWindow?, configuration: Configuration? = nil, completion: (() -> Void)? = nil)
Parameters
window
The view controller whose view should be snapshotted.
configuration
Optional configuration for the view debugger.
completion
Completion block to be called once the view debugger has been presented.
-
Takes a snapshot of the specified view and presents the debugger view controller from the nearest ancestor view controller.
Declaration
Swift
@objc public class func presentForView(_ view: UIView?, configuration: Configuration? = nil, completion: (() -> Void)? = nil)
Parameters
view
The view controller whose view should be snapshotted.
configuration
Optional configuration for the view debugger.
completion
Completion block to be called once the view debugger has been presented.
-
Takes a snapshot of the view of the specified view controller and presents the debugger view controller.
Declaration
Swift
@objc public class func presentForViewController(_ viewController: UIViewController?, configuration: Configuration? = nil, completion: (() -> Void)? = nil)
Parameters
viewController
The view controller whose view should be snapshotted.
configuration
Optional configuration for the view debugger.
completion
Completion block to be called once the view debugger has been presented.
-
Presents a view debugger for the a snapshot as a modal view controller on top of the specified root view controller.
Declaration
Swift
@objc public class func presentWithSnapshot(_ snapshot: Snapshot, rootViewController: UIViewController?, configuration: Configuration? = nil, completion: (() -> Void)? = nil)
Parameters
snapshot
The snapshot to render.
rootViewController
The root view controller to present the debugger view controller from.
configuration
Optional configuration for the view debugger.
completion
Completion block to be called once the view debugger has been presented.