RegeributedTextView
RegeributedTextView copied to clipboard
RegeributedTextView is a subclass of UITextView that supports fully attribute string based on regular expression.
Sorry, this pull request is Japanese only!! ## 問題 文字列に絵文字が含まれていた場合、絵文字の数だけNSRangeの末尾がカットされているようです。 ```swift // addAttribute(.hashTag, attribute: .textColor(.red)) で赤くなる文字 "hoge #fuga" // => #fuga "hoge🍣 #fuga" // => #fug "hoge🍣🍶 #fuga" // =>...
Hi @rinov , I am using your library in my project. I am facing one issue with @mention. Scenario: if the @mention word contains . or any special characters, on...
@rinov こんばんわ! RegeributedTextViewすごく使いやすいです!ありがとうございます! アレンジしたいのですが、ご教授ください。 RegeributedTextView.textに追加したメンションをクリックで選択したら、メンションのテキスト全てを選択し、deleteキーで一文字ずつではなくメンション一括削除をしたいです。 現状一文字ずつしか消せないのでユーザーをファーストを考えると一括で削除したいです。 教えていただけますでしょうか? イメージは以下のやつです。 ユーザー名消している部分です。 https://camo.githubusercontent.com/4e101a98003dbce5bde75ec496c79cb16d5c77a7/687474703a2f2f692e696d6775722e636f6d2f613146664542692e676966
Hello there, i've downloaded latest example and i changed underline style to RegeributedTextView.TextAttribute.underline(UnderlineStyle.dot) and RegeributedTextView.TextAttribute.underline(UnderlineStyle.dashDot) but it didn't worked..