Created
November 5, 2017 16:45
-
-
Save olbrichj/5f4af96027723057ea7034d9440ef710 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getRandomCoordinate() -> XCUICoordinate { | |
let x = CGFloat(Float(arc4random()) / Float(UINT32_MAX)) | |
let y = CGFloat(Float(arc4random()) / Float(UINT32_MAX)) | |
let vector = CGVector(dx: x, dy: y) | |
let coordinate = getCoordinateForVector(vector: vector) | |
return coordinate | |
} | |
coordinate.tap() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment