How to turn vibrancy off for a specific subview - Swift

417 Views Asked by At

I'm using swift. iOS 10.

I have blur/vibrancy views in the storyboard and I have another view (which contains labels, and a collection view) that I'm putting inside the vibrancy view.

The problem is that the collection view's cells (which are red buttons) look really lame when they're inside a vibrancy view (they get all discolored and faded and it doesn't look good). The label's look great though.

Is there some way I can turn vibrancy off for the collection view, but leave it on for the labels, etc?

I tried adding the collection view to a UIVisualEffectView with effect = nil. But that didn't turn it off.

Maybe there's some way to get the buttons to look better, so that could possibly be a solution too. But to keep it simple, I was just looking to see how I can turn vibrancy "off" for a specific subview of the vibrancy view.

0

There are 0 best solutions below