GREYBaseMatcher

@interface GREYBaseMatcher : NSObject <GREYMatcher, NSCopying>

A base class that implements the GREYMatcher protocol methods. Prefer subclassing this class over creating your own matchers. Every subclass must override and provide its own implementation for GREYBaseMatcher::matches: and GREYBaseMatcher::describeTo: methods.

  • See

    GREYMatcher::matches:

    @remark This method is required to be implemented in the subclass.

    Declaration

    Objective-C

    - (BOOL)matches:(id)item;

    Swift

    func matches(_ item: Any!) -> Bool
  • See

    GREYMatcher::describeTo:

    @remark This method is required to be implemented in the subclass.

    Declaration

    Objective-C

    - (void)describeTo:(id<GREYDescription>)description;

    Swift

    func describe(to description: Any!)