UIView
Undocumented
-
Forces all views to appear, including subviews that do not usually load in unit tests (such as UIButtonLabel). This is to ensure that manual and automated testing give the same accurate results.
Important
The accessibility service asssumes that all views are present. Call this in your unit tests to ensure that unexpected results do not occur.
Declaration
Swift
public func forceLoad()
Return Value
None
-
Prints the view heirarchy to the log.
Declaration
Swift
public func logHeirarchy(printer:(UIView)->(String) = {(view:UIView) -> (String) in return view.description })
Parameters
printer
A function with UIView as a parameter and returning a String. By default, this function takes the current UIView and returns the view’s description.
Return Value
None
-
Recursively calls the given function on all views in the heirarchy.
Declaration
Swift
public func runOnHeirarchy(_ runFunc:(UIView)->())
Parameters
runFunc
The function that should be run on all views.
Return Value
None