VariableBlurView
VariableBlurView copied to clipboard
Pixelation on the bottom part of the gradient
The very bottom of the blur view has noticeable pixels and a hard cut. I assume this is because the standard blur layer uses a much lower sample rate because if would not be visible under a full blur. Is this something we could change to make it look nicer?
Update:
Indeed you can do something like
backdropLayer?.setValue(15, forKey: "scale")
to get a much higher quality blur, even at the bottom. You might need to make performance considerations here depending on how large your blur view is but for my usage it's no problem (height of 200pt).
Might be worth it to include it, if it passes tests and does not have other side effects.
I think 15 is much higher than necessary; I imagine this scale is meant to be set to the screen scale. I found that worked well for my use case at least.