Node
public class Node : NSObject
Information about one view after being analyzed in a Rule. Entries hold a list of Nodes.
-
UIView that was analyzed in the Rule.
Declaration
Swift
public let view: UIView
-
Print a description of the Node in the way defined in the printer parameter.
Declaration
Swift
open func description(printer: (Node) -> String) -> String
Parameters
printer
A function that takes in a Node as a parameter and returns a String. This function should convert the information desired from the Node to a String.
Return Value
String containing the desired information.
-
String containing all of the information in a Node. Prints it in a clean, easy-to-read format. It contains:
- Description of the view
- Description of the Checks run on it (which includes whether the view passed the Check)
Declaration
Swift
override open var description: String
-
The severity of the violation of the Node. The Impact may be one of the following:
- Impact.Pass
- Impact.Minor
- Impact.Moderate
- Impact.Serious
- Impact.Critical
Declaration
Swift
public var impact: Impact
-
Retrieves the UIView’s accessibility identifier if it has one, otherwise it creates one.
Declaration
Swift
public var target: String