FadingTextView for iOS by Damien Laughton

Download Source

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

by 1 person

(Click the stars to add your rating)

Sponsored with ❤️ by Instabug
Understand How Your App is Doing with Real-Time Contextual Insights From Your Users
Instabug

Receive bug reports that automatically capture all app details; network requests, repro steps, and session details. And get real-time crash reports with stack trace details up to the line that caused the crash to help you catch and fix issues much faster. It takes less than a minute to integrate the SDK and you can forward all issues to your favorite tools like: Jira, slack and many more. This is just the beginning!