I’m looking to fade out a scrolling UITextView
over a background image, something similar to the gradient at the top of this little example.
I’m trying to work out how I can achieve this using CAGradientLayer
and masks. As the text in the view scrolls (vertically), I need the text to become transparent before it hits the frame of the view, to give the illusion that it’s fading out upward and downward.
Any tips on how I might achieve this?
See Question&Answers more detail:os