Filter
public protocol Filter
An object that finds views that are not applicable to the Rule and prevents them from being checked. Any views that do not pass the filter will be listed as inapplicable in the final results.
-
Run the filter on the given UIView.
Note
Returning false means that the Rule will not run on this UIView. The log will show this UIView as being inapplicable for the specified Rule.
Declaration
Swift
func filter(_ input:UIView) -> Bool
Parameters
input
The UIView on which the filter should be run.
Return Value
Bool, True if input passes the filter. False otherwise.