All Projects → magicmon → Mentions

magicmon / Mentions

Licence: MIT license
An easy way to add mentions and hashtags

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Mentions

Socially
Socially is a textView which is able to create separate clickable views according to your requirements.
Stars: ✭ 28 (+16.67%)
Mutual labels:  hashtag, mention
textmatcher
A simple text watcher that matches specific targets like mention or hashtag in a string by defining rules
Stars: ✭ 67 (+179.17%)
Mutual labels:  hashtag, mention
mention-hashtag
Extract mentions (@mention) or hashtags (#hashtag) from any text
Stars: ✭ 16 (-33.33%)
Mutual labels:  hashtag, mentions
OrangeLabel
OrangeLabel is extensions of UILabel linkable, available line background and placeholder text
Stars: ✭ 19 (-20.83%)
Mutual labels:  hashtag, mention
HDEmptyView
一个Swift语言封装的EmptyView显示库,可作用于WKWebView、UITableView、UICollectionView 无网络提醒或者空数据提醒
Stars: ✭ 29 (+20.83%)
Mutual labels:  uitableview
react-native-js-tableview
A JavaScript implementation for TableView that looks great on both iOS and Android.
Stars: ✭ 23 (-4.17%)
Mutual labels:  uitableview
wink-sentiment
Accurate and fast sentiment scoring of phrases with #hashtags, emoticons :) & emojis 🎉
Stars: ✭ 51 (+112.5%)
Mutual labels:  hashtag
instastory.js
This is a jQuery plugin to make it easy to get a feed from instagram. No need of access tokens and other stuff, Only thing needed is jQuery.
Stars: ✭ 36 (+50%)
Mutual labels:  hashtag
react-tagify
📛 Powerful Pure React Component For Hashtags and Mentions In Your React App
Stars: ✭ 24 (+0%)
Mutual labels:  mentions
MentionMe
A plugin for MyBB 1.8.x that allows Twitter-style tagging and integration with MyAlerts
Stars: ✭ 19 (-20.83%)
Mutual labels:  mentions
TreeView
"TreeView - sub-cells simplified" (c). Enable subcells in UITableView with a single drop-in extension. CocoaPod:
Stars: ✭ 54 (+125%)
Mutual labels:  uitableview
RevivalxUITableView
This source code provides example for UITableView using Alamofire and Haneke.
Stars: ✭ 13 (-45.83%)
Mutual labels:  uitableview
AUPickerCell
Embedded picker view for table cells.
Stars: ✭ 19 (-20.83%)
Mutual labels:  uitableview
hashflags-function
⚡ A collection of Azure functions related to Twitter hashflags
Stars: ✭ 15 (-37.5%)
Mutual labels:  hashtag
Cyanic
Declarative, state-driven UI framework
Stars: ✭ 32 (+33.33%)
Mutual labels:  uitableview
actions-mention-to-slack
Github Action for convert Github mention to Slack mention.
Stars: ✭ 52 (+116.67%)
Mutual labels:  mention
Twitter-bot
Twitter bot which waits for #hashTag and sends weather update of city via tweets
Stars: ✭ 20 (-16.67%)
Mutual labels:  hashtag
ember-cli-mentionable
An ember addon for facebook style @mentions and #hashtags
Stars: ✭ 13 (-45.83%)
Mutual labels:  mentions
DropDownTableView
Here is a drop-down TableView.
Stars: ✭ 16 (-33.33%)
Mutual labels:  uitableview
DraggableModalTransition
Enables dragging interaction and animation of scrollView in a similar way to Facebook Messenger app.
Stars: ✭ 63 (+162.5%)
Mutual labels:  uitableview

Mentions

Swift 5.0 Version Platform License

An easy way to add mentions in UITextView.

Demo

Demo

Requirements

  • Swift 5.0
  • Xcode 11
  • iOS 10.0+

Example

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

Installation

CocoaPods (recommended)

use_frameworks!

pod 'Mentions'

Usage

var mentionTextView = MentionTextView()
view.addSubview(mentionTextView)

// initial text with mention.
mentionTextView.mentionText = "who is your favorite actor or actress? I like [Will Smith] and [Robert Pattinson] the best."
mentionTextView.deleteType = .cancel // or .delete

// add to mention.
mentionTextView.insert(to: "Leonardo DiCaprio", with: mentionTextView.selectedRange)

If you want to show the text that contains the mention, set it as follows.

var textLabel = MentionLabel()
view.addSubview(textLabel)

textLabel.text = mentionTextView.mentionText

// or Add the text of the mention inside special characters "[]".
textLabel.text = "[Brad Pitt]"


// show the mention text.
textLabel.tapHandler = { (mention) in
  let alert = UIAlertView(title: "", message: mention, delegate: nil, cancelButtonTitle: nil, otherButtonTitles: "OK")
  alert.show()
}

Author

magicmon, http://magicmon.github.io

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].