I am using the VariableBlur library in Swift to create a blur over my collection view under the status bar area as such:
I am trying to figure out how I can make the blur darker?
The library uses a CIFilter
but I am not sure what to change to make it darker. I have already tried changing the UIBlurEffect(style: .regular)
to use .dark
but that didn’t make any difference.
And the color0
on ciGradientFilter
is already set to black. In fact, changing it to red or any other color doesn’t make any difference.
2
Answers
A simple way is to just put your own black gradient below the
VariableBlurView
.Side-by-side comparison: