Result

public class Result : NSObject

A class containing all of the results from the analysis.

  • The status of the Rule on a view.

    See more

    Declaration

    Swift

    public enum Status:String
  • Whether all views passed a Rule.

    Declaration

    Swift

    open var isPassing: Bool
  • The list of inapplicable views for each Rule.

    Declaration

    Swift

    open var inapplicable: [Entry]
  • The list of incomplete views for each Rule.

    Declaration

    Swift

    open var incomplete: [Entry]
  • The list of passing views for each Rule.

    Declaration

    Swift

    open var passes: [Entry]
  • The list of violating views for each Rule.

    Declaration

    Swift

    open var violations: [Entry]
  • The list of views failing best practices for each Rule.

    Declaration

    Swift

    open var bestPractices: [Entry]
  • Print a description of the Attest Result in the way defined in the printer parameter.

    Declaration

    Swift

    open func description(printer: (Result) -> String) -> String

    Parameters

    printer

    A function that takes in an Attest Result as a parameter and returns a String. This function should convert the information desired from the Attest Result to a String.

    Return Value

    String containing the desired information.

  • String containing the number of violations and passes in an Attest Result.

    Declaration

    Swift

    open var descriptionShort: String
  • String containing all of the information in an Attest Result. Prints it in a clean, easy-to-read format. It contains:

    • Number of violations and passes
    • Descriptions of the view’s violations
    • Descriptions of the view’s passes
    • How to fix the violations for each Rule and Check
    • The severity of the violations for each Rule and Check

    Declaration

    Swift

    override open var description: String
  • Once one Rule runs on a list of views, each analyzed view can be described by one of four Statuses: Pass, Violation, Inapplicable, or Incomplete. An Entry holds all of the views for one of these Statuses.

    See more

    Declaration

    Swift

    public class Entry : NSObject
  • Information about one view after being analyzed in a Rule. Entries hold a list of Nodes.

    See more

    Declaration

    Swift

    public class Node : NSObject