Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to disable all animations on ios?

Tags:

ios

kif

Callbacks should still be called. I want to use it for KIF testing. The purpose is reducing the test time.

like image 567
Taha Selim Bebek Avatar asked Dec 02 '22 19:12

Taha Selim Bebek


1 Answers

The simplest way is to set the speed property of the window layer to a high number. What this does is control the speed of animation; a value of >1 increases speed. Set a value high enough, and animations will take shorter than frame length (1/60th of a second).

This is the best option because it affects both UIKit and Core Animation animations. Starting with iOS7, a lot of the system animations are actually performed with Core Animation directly.

like image 169
Léo Natan Avatar answered Dec 26 '22 09:12

Léo Natan