https://github.com/rickytan/rtviewattachment
Attach a custom UIView to text view
https://github.com/rickytan/rtviewattachment
attachment control image text-editor uiview
Last synced: about 1 year ago
JSON representation
Attach a custom UIView to text view
- Host: GitHub
- URL: https://github.com/rickytan/rtviewattachment
- Owner: rickytan
- License: mit
- Created: 2016-06-17T10:29:40.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-18T08:06:27.000Z (about 10 years ago)
- Last Synced: 2025-06-06T02:31:25.189Z (about 1 year ago)
- Topics: attachment, control, image, text-editor, uiview
- Language: Objective-C
- Size: 2.51 MB
- Stars: 49
- Watchers: 3
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RTViewAttachment
[](https://travis-ci.org/rickytan/RTViewAttachment)
[](http://cocoapods.org/pods/RTViewAttachment)
[](http://cocoapods.org/pods/RTViewAttachment)
[](http://cocoapods.org/pods/RTViewAttachment)
## 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.

;
## 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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "RTViewAttachment"
```
## Author
Ricky Tan, ricky.tan.xin@gmail.com
## License
RTViewAttachment is available under the MIT license. See the LICENSE file for more info.