diff --git a/PKHUD/Window.swift b/PKHUD/Window.swift index 39fff20..f4ec764 100644 --- a/PKHUD/Window.swift +++ b/PKHUD/Window.swift @@ -27,6 +27,7 @@ internal class ContainerView: UIView { fileprivate func commonInit() { backgroundColor = UIColor.clear + isHidden = true addSubview(backgroundView) addSubview(frameView) diff --git a/PKHUDDemoUITests/PKHUDDemoUITests.swift b/PKHUDDemoUITests/PKHUDDemoUITests.swift index da23bc1..1e34ef2 100644 --- a/PKHUDDemoUITests/PKHUDDemoUITests.swift +++ b/PKHUDDemoUITests/PKHUDDemoUITests.swift @@ -59,7 +59,7 @@ class PKHUDUITests: XCTestCase { self.waitForHudToDisappear() } - func waitForCondition(element: XCUIElement, predicate: NSPredicate, timeout: TimeInterval = 5) { + func waitForCondition(element: XCUIElement, predicate: NSPredicate, timeout: TimeInterval = 3.5) { expectation(for: predicate, evaluatedWith: element, handler:nil) waitForExpectations(timeout: timeout, handler: nil) }