     func checkActivityViewAppeared() -> Bool {
         for item in UIApplication.shared.keyWindow!.subviews
             where item.restorationIdentifier == "NVActivityIndicatorViewContainer" {
-            return true
+                return true
         }
 
         return false

            XCTAssertTrue(self.checkActivityViewAppeared())
        }
        NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
        doAfter(10) {
            XCTAssertTrue(self.checkActivityViewAppeared())
        }
        doAfter(50) {

        NVActivityIndicatorPresenter.sharedInstance.startAnimating(activityData)
        doAfter(50) {
            XCTAssertFalse(self.checkActivityViewAppeared())
        }
        NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
        doAfter(approximateZero) {
            XCTAssertFalse(self.checkActivityViewAppeared())
        }

        NVActivityIndicatorPresenter.sharedInstance.startAnimating(activityData)
        doAfter(100) {
            XCTAssertTrue(self.checkActivityViewAppeared())
        }
        NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
        doAfter(approximateZero) {
            XCTAssertFalse(self.checkActivityViewAppeared())
        }
    }
