GREYConstants
@interface GREYConstants : NSObject
A class containing helper methods for conversion to-and-from constants.
-
Declaration
Objective-C
+ (GREYDirection)directionFromCenterForEdge:(GREYContentEdge)edge;
Swift
class func directionFromCenter(forEdge edge: Any!) -> Any!
Return Value
The direction from center to the given @c edge.
-
Declaration
Objective-C
+ (GREYContentEdge)edgeInDirectionFromCenter:(GREYDirection)direction;
Swift
class func edgeInDirection(fromCenter direction: Any!) -> Any!
Return Value
The edge that is in the given @c direction from the center.
-
Declaration
Objective-C
+ (GREYDirection)reverseOfDirection:(GREYDirection)direction;
Swift
class func reverse(ofDirection direction: Any!) -> Any!
Return Value
The reverse direction of the given @c direction.
-
Declaration
Objective-C
+ (CGVector)normalizedVectorFromDirection:(GREYDirection)direction;
Swift
class func normalizedVector(fromDirection direction: Any!) -> Any!
Return Value
A normalized vector in the given @c direction.