/AutomaticPager

calculate number of rects needed to display text.

Primary LanguageSwift

AutomaticPager

Uses a UItextview to get the visible text. From there it splits a String and generates Arrays to give you pages. Since it is build on top of a UITextView it supports all forms of styling available to UITextView. Can be easily modified to accept NSAttributedStrings