DPTagTextView
Add & detect Tag/mention and tag search for Textview.
Installation with CocoaPods
CocoaPods is a dependency manager for Objective-C & Swift. You can install it with the following command:
Podfile
To integrate DPTagDetectionTextView into your Xcode project using CocoaPods, specify it in your Podfile
:
Then, run the following command:
Installation with Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
To integrate DPOTPView
into your Xcode project using Carthage, specify it in your Cartfile
:
Run carthage
to build the framework and drag the framework (DPTagTextView.framework
) into your Xcode project.
Installation with Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
To add the library as package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL https://github.com/Datt1994/DPTagTextView.git
Add Manually
Download Project and copy-paste DPTagTextView.swift
file into your project
How to use
?Add DPTagTextView to UITextView Custom Class.
Code
Set up
Delegate Methods