Latest 0.1.1
Homepage https://github.com/rickytan/RTViewAttachment
License MIT
Platforms ios 7.0
Frameworks UIKit, Foundation
Authors

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.

Latest podspec

{
    "name": "RTViewAttachment",
    "version": "0.1.1",
    "summary": "A solution for attaching a `UIView` to a text editor",
    "description": "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?nnHere comes a solution. This project is based on `NSTextAttachment`, and no private API is used, no Black Magic.",
    "homepage": "https://github.com/rickytan/RTViewAttachment",
    "screenshots": "https://raw.githubusercontent.com/rickytan/RTViewAttachment/master/Screenshot/1.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ricky Tan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rickytan/RTViewAttachment.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "RTViewAttachment/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Foundation"
    ]
}

Pin It on Pinterest

Share This