Classes
The following classes are available globally.
-
Use Attest to start analysis for manual or automated testing. The two functions that are needed for manual testing are
Attest.startServer(_ port: )
and
Attest.stopServer()
These should be called in the AppDelegate. See these two functions for more details.
Note
VoiceOver should always be on for manual testing if highlighting the violating view is desired.In automated testing, use the functions
Attest.that().isAccessible()
to look for accessibility violations in a specified UIViewController. Attest uses a sub-class calledAssert
to run the analysis, and another sub-class calledResult
to display the results from the analysis.Attest is initialized by calling one of three
that
functions. Athat
function will automatically create an Assert class, which will be used to run the analyzer. Examples of this include:Attest.that(view: myView).isAccessible()
Attest.that(viewController: myViewController.isAccessible()
Attest.that(storyBoardName: "Storyboard Name", viewControllerID: "UIViewController ID", bundle: "UIBundle Name").isAccessible()
Attest.that(storyBoardName: "Storyboard Name", viewControllerID: "UIViewController ID").isAccessible()
Attest.that(storyBoardName: "Storyboard Name").isAccessible()
Please see the
See moreisAccessible()
functions and thethat()
functions for more information on their correct usages.Declaration
Swift
public class Attest : NSObject
-
One or more Checks are run in one Rule. Each Check sees if the view violates an accessibility requirement.
See moreDeclaration
Swift
open class Check
-
This is the class that connects the device running the Attest framework to the Attest Mobile UI Client.
See moreDeclaration
Swift
public class WebsocketServer: NSObject, PSWebSocketServerDelegate
-
A class with information regarding the device that is currently being manually tested with the Attest framework. This information contains:
- Operating System of the device
- Type
Name
of the device - A short description of the device
Declaration
Swift
public class DeviceInfo: NSObject