RFMention 0.1.5

RFMention 0.1.5

Maintained by seirifat.



RFMention 0.1.5

  • By
  • seirifat

RFMention

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.