Skip to content

Instantly share code, notes, and snippets.

@anuragajwani
Created June 1, 2018 15:48
Show Gist options
  • Save anuragajwani/132224e64e2a2c2615f58ffe5f2a8ff9 to your computer and use it in GitHub Desktop.
Save anuragajwani/132224e64e2a2c2615f58ffe5f2a8ff9 to your computer and use it in GitHub Desktop.
addUIInterruptionMonitor(withDescription: "Camera permission dialog") { (alert) -> Bool in
if alert.label == "“Application” Would Like to Access the Camera" {
alert.buttons["OK"].tap()
self.app.swipeUp()
self.app.swipeDown()
return true
}
return false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment