Reputation: 3767
How do you add a delay in an Xcode Instruments UI script? I have a view that can take a second to load. I have tried these waitForValid suggestions found here but I can't get it to work because I don't really have an object to check. Can I wait for a storyboard ID to show up?
Upvotes: 0
Views: 1059
Reputation: 3767
The answer can be found within Apple documentation. I somehow missed it, and feel sheepish.
UIATarget.localTarget().delay(X);
Having X in seconds.
Upvotes: 1
Reputation: 871
Or,do you use an activity indicator to show the loading progress?
Then maybe you can check the visibility of UIAActivityIndicator.
Upvotes: 0