FadingTextView for iOS

A simple device for creating a fade effect at the bottom and top of a text view. Also included in the project is FadingContentScrollView which is a scroll view that you supply a content view to and the fade effect can be either top and bottom (vertical scrolling) or at left and right (horizontal scrolling).

Run the project in the iPhone simulator and you get a full screen FadingTextView.

Run the project in the iPad simulator and you get several examples of FadingContentViews.

The effect is achieved by adding views on top of the content view which in turn have a gradient layer. There are probably better ways to achieve this - especially as the gradient views detract from the interaction area of the scrollview/textview.

Any suggestions for improvement would be gratefully received.

License: Public Domain

Language: Objective-C

Platform: iOS

Sponsored with ❤️ by Instabug
Instabug: Understand how your app is doing with real-time contextual insights from your users
Instabug

Get all the logs you need and fix bugs, crashes, and other issues in minutes instead of days. With Instabug you will automatically receive device data, network logs, and reproduction steps with every bug and crash report. It only takes a line of code to integrate and is perfect for teams that are now working remotely. See more detailed features comparison and try Instabug for free here.