/AttributedText

YYText rewritten in Swift

Primary LanguageSwiftMIT LicenseMIT

AttributedText(Swift Version of YYText)

Powerful text framework for iOS to display and Edit rich text.

Features

  • UILabel and UITextView API compatible
  • High performance asynchronous text layout and rendering
  • Extended CoreText attributes with more text Effects
  • Text attachments with UIImage, UIView and CALayer
  • Custom highlight text range to allow user interact with
  • Text parser support (built in markdown/emoticon parser)
  • Text container path and Exclusion paths support
  • Vertical form layout support (for CJK text)
  • Image and attributed text copy/paste support
  • Attributed text placeholder support
  • Custom keyboard view support
  • Undo and redo control
  • Attributed text archiver and unarchiver support
  • Multi-language and VoiceOver support
  • Fully documented

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/sunimp/AttributedText.git", .upToNextMajor(from: "1.0.0"))
]

License

AttributedText is released under the MIT license. See LICENSE file for details.