- RTL
- IB Integration
- Selection
- Asynchronous Rendering
- Custom Page Transitions (built-in and/or through delegation)
To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 10+
- Swift 4.2
HorizontalTextView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'HorizontalTextView'
ahmedk92, ahmedkhalaf.92@gmail.com
HorizontalTextView is available under the MIT license. See the LICENSE file for more info.
This is a straightforward implementation of the idea described here in the official docs.
An NSLayoutManager
gradually lays out text (NSTextStorage
) in a series of NSTextContainer
objects (each representing a page of text). A separate UITextView
is created for each NSTextContainer
, and they take care of actual rendering. Then a UIScrollView
wraps the text views for scrolling/paging.
Contributions are welcome in the form of issues, but pull requests are preferred. Please consider the following when submitting code:
- Add documentation for public properties and functions.
- Make a separate pull request for each feature/bugfix.
- If new files are added, please make sure they're included in the podspec. For convenience, just add it in the
Classes
subfloder.