Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. extension XCUIApplication {
  2. func openControlCenter() {
  3. let down = self.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.999))
  4. let up = self.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.2))
  5. down.press(forDuration: 0.1, thenDragTo: up)
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement