I've created a vertical gradient (black to white) as a mask layer for an UIImageView, but the linear fade is not working for me.
I want to show more of the full-alpha image and fade quicker towards the bottom, so I was thinking an exponential curve is what I'm looking for. I'd really like to avoid manually adding extra colors/locations, as it will look pretty choppy.
Is there any way to achieve this?
Edit: here's the difference
As you can see, there's a lot less black in the exponential one.
I ended up writing my own function, settling on a easeInOutCubic: