Relative Content

Tag Archive for iosswiftuikitgradient

Swift: Gradient from blur to transparent

I have a view with a blur effect, and as a subview, I have a scrollview. I would like to add a fading effect at the top and bottom.
The fading effect should go from blur to transparent and should be a continuation of the background.
I don’t know how to approach this at all; here’s a picture of my result and the expected result.

Swift: Gradient from blur to transparent

I have a view with a blur effect, and as a subview, I have a scrollview. I would like to add a fading effect at the top and bottom.
The fading effect should go from blur to transparent and should be a continuation of the background.
I don’t know how to approach this at all; here’s a picture of my result and the expected result.