Kaitis
Kaitis

Reputation: 638

UIVisualEffectView vibrancy not showing on device(but showing in simulator)

I am running my test app on the 4s simulator and iPhone 4s(device). Any ideas why the vibrant text disappears on the device?

Here are the photos with the problem:

simulator:

simulator

device:

device Any help appreciated!

Upvotes: 2

Views: 525

Answers (2)

Ryde
Ryde

Reputation: 714

I have this problem too, with image view as content. Somehow I got it works after changing my image color to white (it's black before). Try changing your text color to pure white.

Upvotes: 3

onekiloparsec
onekiloparsec

Reputation: 2063

I was scratching my head for the same problem. The solution has been given in the comments by @TonyMkenu : the flag UIAccessibilityIsReduceTransparencyEnabled() prevents the blur and vibrancy to work (rendering as an opaque very light ugly gray).

Upvotes: 0

Related Questions