IOS: Create UIImage from a background thread?

The apple documentation says:

Since image objects are immutable, you cannot change their properties after creation. Most image properties are set automatically using metadata in the accompanying image file or image data. The immutable nature of image objects also means that they are safe to create and use from any stream.

Link

Also, if you look at the answers to this question “UIImage security security” , the conclusion is made that it is safe to use them from any stream (at least since iOS 9).

However, there are comments that complain about problems, especially about creating UIImages in the background thread.

In my case, I am sure that this leads to the fact that the animation stops working. Does anyone know about this?

+1
source share

Source: https://habr.com/ru/post/1438230/


All Articles