Swipe iphone home screen to left , XCode UI Testing
<p>Following is my piece of code . After the launch of application I click on the submit button which shows me an alert. </p>

<p>After I click ok on the UIAlertViewController I move to the home screen , and then I want to swipe left on the home screen.</p>

<p>Any idea how this can be done.</p>

<p>Any help will be appreciated</p>

<pre><code>  func testExample() {

            let app = XCUIApplication()
            app.buttons["Submit"].tap()
            app.alerts["Please enable bluetooth"].buttons["OK"].tap()
            XCUIDevice.sharedDevice().pressButton(XCUIDeviceButton.Home)

        }
</code></pre>