SimpleAsyncRichText 0.0.1

SimpleAsyncRichText 0.0.1

Maintained by Legendry.



  • By
  • czqasngit

SimpleAsyncRichText

Async rendering NSAttributedString using CoreText , high performance and easy to understand

Functions

  • Selection range
  • Click, Long Press and Link Click
  • Add image using NSAttributedString extension method add(image: UIImage, renderingSize: CGSize = .zero)
  • Correctly calculate the height of NSAttributedString using NSAttributedString extension method calculateRichTextSize(:)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

SimpleAsyncRichText is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SimpleAsyncRichText'

Author

youxiaobin, [email protected]

License

SimpleAsyncRichText is available under the MIT license. See the LICENSE file for more info.