Element
@objc(IAVDElement)
public protocol Element
A UI element that can be snapshotted.
-
Identifying information for the element, like its name and classification.
Declaration
Swift
var label: ElementLabel { get }
-
A shortened description of the element.
Declaration
Swift
var shortDescription: String { get }
-
The full length description of the element.
Declaration
Swift
var description: String { get }
-
The frame of the element in its parent’s coordinate space.
Declaration
Swift
var frame: CGRect { get }
-
Whether the element is hidden from view or not.
Declaration
Swift
var isHidden: Bool { get }
-
A snapshot image of the element in its current state.
Declaration
Swift
var snapshotImage: CGImage? { get }
-
The child elements of the element.
Declaration
Swift
var children: [Element] { get }