Skip to content

Commit

Permalink
Wait for window
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellanata committed Jul 29, 2021
1 parent 10371ad commit 433f3ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Hammer/EventGenerator/EventGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public final class EventGenerator {
UIApplication.registerForHIDEvents(ObjectIdentifier(self)) { [weak self] event in
self?.markerEventReceived(event)
}

self.waitUntilWindowIsReady()
}

/// Initialize an event generator for a specified UIViewController.
Expand Down

0 comments on commit 433f3ea

Please sign in to comment.