Snapshot
@objc(IAVDSnapshot)
public final class Snapshot : NSObject
A snapshot of the UI element tree in its current state.
-
Unique identifier for the snapshot.
Declaration
Swift
@objc public let identifier: String
-
Identifying information for the element, like its name and classification.
Declaration
Swift
@objc public let label: ElementLabel
-
The frame of the element in its parent’s coordinate space.
Declaration
Swift
@objc public let frame: CGRect
-
Whether the element is hidden from view or not.
Declaration
Swift
@objc public let isHidden: Bool
-
A snapshot image of the element in its current state.
Declaration
Swift
@objc public let snapshotImage: CGImage?
-
The child snapshots of the snapshot (one per child element).
Declaration
Swift
@objc public let children: [Snapshot]
-
The element used to create the snapshot.
Declaration
Swift
@objc public let element: Element
-
Constructs a new
Snapshot
Declaration
Swift
@objc public init(element: Element)
Parameters
element
The element to construct the snapshot from. The data stored in the snapshot will be the data provided by the element at the time that this constructor is called.