Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.42 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.42 KB

RTViewAttachment

CI Status Version License Platform

Introduction

Since iOS 7, developers can attach a NSTextAttachemnt to a UITextView, and it will display as an image. What if I want to attach a UIView to a text editor, and it can layout with all other text?

Here comes a solution. This project is based on NSTextAttachment, and no private API is used, no Black Magic.

screenshot1

screenshot2;

Example

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

Requirements

  • iOS 7 and up
  • Xcode 7 and up

Installation

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

pod "RTViewAttachment"

Author

Ricky Tan, [email protected]

License

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