gsracerx98
gsracerx98

Reputation: 11

Increase iOS UI-testing speed

I've been reading tricks to speed up iOS UITesting by increasing the Core Animation speed. What does the following value represent? What are the minimum and maximum values?

UIApplication.sharedApplication.keyWindow.layer.speed = 100;

Upvotes: 0

Views: 1360

Answers (1)

Oletha
Oletha

Reputation: 7659

The value of speed represents the speed of animation on the key (active) window of your app. 1.0 is the default speed.

speed is a property of CAMediaTiming, a protocol confirmed to by CALayer, which in this case, is the Core Animation layer of your app's key window. https://developer.apple.com/reference/quartzcore/camediatiming/1427647-speed

speed is of type Float, a 32-bit floating point number, so the maximum value is Float.greatestFiniteMagnitude for most practical uses. The minimum value is Float.leastNonzeroMagnitude.

Upvotes: 1

Related Questions