RFMention
USAGE
- Import header
import RFMention
- Create RFMentionViewController in your ViewController
let rfController = RFMentionTextViewViewController()
- Create array of
RFMentionItem
and passing tosetUpMentionTextView
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.