iphonexcodeuivisualeffectviewuiblureffect

Xcode warning: "This will cause the effect to appear broken until opacity returns to 1"


I have a prototype cell and I put a UIVisualEffectView inside its ContentView. Visual Effect View's Blur Style is Dark and Vibrancy is off. Then I set the alpha of the Visual Effect View to 0,5 using the IB.

Then on runtime, I get a warning that says:

<UIVisualEffectView ...> is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1.

I couldn't understand why this warning is there and how I can set this alpha property properly.


Solution

  • As far as I can remember you cannot change the alpha of a visual effect view. The alpha always has to be one.