What does the selection of CALayer in View Effects Inspector inside Interface Builder do?

Inside IB, in Inspector View Effects, it is possible to install Core Animation Layer. If I install it, what does he do?

View Effects Inspector

Is it equivalent to setWantsLayer:YES ?

If so, then Apple docs setWantsLayer can be called before or after setLayer:

The order that setWantsLayer: and setLayer: are called is important, it makes the distinction between a layer-backed view and a layer-hosting view.

If I installed CALayer from IB, what order will it be?

+6
source share
1 answer

The checkbox makes your image with layer support (for example, calling setWantsLayer: without setLayer: .

+8
source

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


All Articles