k-lpmg / tagging Goto Github PK
View Code? Open in Web Editor NEWA TextView that provides easy to use tagging feature for Mention or Hashtag
License: MIT License
A TextView that provides easy to use tagging feature for Mention or Hashtag
License: MIT License
it tried to implement this using Bridging-Header but can not access this variable and method in objective c
When I enter first "@" then it doesn't work properly and doesn't give exact match list. But when we enter some text and then I enter " @" it works properly. Please, check and let me know what I need to manage.
Hi,
Hope you are doing well.
As of now below method called twice in xcode 14.3.1. other xcode's below version working fine.
`public func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool {
}`
Thanks in advance.
It works well for the first time tag user using @ mentions. When I try same for the second time it crashes on the function:
private func updateAttributeText(selectedLocation: Int) {
Could not get the cause of this crash but it is important to me if it resolve asap. Thanks!
Following is the crash log I'm getting:
Terminating app due to uncaught exception 'NSRangeException', reason: 'NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds' *** First throw call stack: (0x1831b3164 0x1823fc528 0x1831b30ac 0x183aaf594 0x183aaf9f0 0x10339e880 0x10339e9ac 0x1033a255c 0x103453c14 0x10339be4c 0x10339cc94 0x10339d484 0x18c9149ec 0x18c7ac294 0x18c9144d8 0x18c9136d0 0x18c913528 0x18c91345c 0x18cbd735c 0x18cbd665c 0x18d431fac 0x18c7975f0 0x183baf2e4 0x18315b77c 0x18315b6fc 0x18315af84 0x183158b5c 0x183078c58 0x184f24f84 0x18c7d15c4 0x1008a0da0 0x182b9856c) libc++abi.dylib: terminating with uncaught exception of type NSException
Hello,
We have text and we have tagged text before writing anything into textfield.
How can we do that?
Thanks in advance.
When i explore with Tamil (SouthIndian language) as tagging suggestion then the tagging attribute is not applied for a whole word.
Solution:
taggingAttributeRange should be like this NSMakeRange(model.range.location+1, model.text.utf16.count).
need to get the characters count from utf16 encoding.
it'll be good if apply the same for updateAttributeText method's selectedLocation param (For cursor placing).
Refer the screenShots.
How to fix ? thx u
After I paste a long text from clip board to tagging, I hard to select another text for deleting or editing
I have added john smith in the tag list when I type symbol @ it is giving in suggestion but for @john s Not giving the output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.