Latest 0.1.5
Homepage https://github.com/seirifat/RFMention
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

USAGE

  1. Import header
import RFMention
  1. Create RFMentionViewController in your ViewController
let rfController = RFMentionTextViewViewController()
  1. Create array of RFMentionItem and passing to setUpMentionTextView
var itemsArray: [RFMentionItem]  = [RFMentionItem]()

let alam = RFMentionItem(id: 1, text: "Alam Muh")
let bungkhus = RFMentionItem(id: 2, text: "Bungkhus")
let dodi = RFMentionItem(id: 2, text: "Dodi Dar")
let rifki = RFMentionItem(id: 2, text: "Rifki")
let aldi = RFMentionItem(id: 2, text: "Aldi Fir")

itemsArray.append(alam)
itemsArray.append(bungkhus)
itemsArray.append(dodi)
itemsArray.append(rifki)
itemsArray.append(aldi)

// parentController is this view controller
rfController.setUpMentionTextView(parentController: self, textView: textView, itemList: itemsArray)

Example

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

Requirements

Installation

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

pod 'RFMention'

Author

seirifat, [email protected]

License

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

Latest podspec

{
    "name": "RFMention",
    "version": "0.1.5",
    "summary": "Mention people/user in UITextView",
    "description": "You can Mention people/user in UITextView likes whatsapp",
    "homepage": "https://github.com/seirifat/RFMention",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "seirifat": "[email protected]"
    },
    "source": {
        "git": "https://github.com/seirifat/RFMention.git",
        "tag": "0.1.5"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "RFMention/Classes/**/*",
    "swift_version": "4"
}

Pin It on Pinterest

Share This