Created
June 1, 2018 15:48
-
-
Save anuragajwani/132224e64e2a2c2615f58ffe5f2a8ff9 to your computer and use it in GitHub Desktop.
This file contains 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
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