This commit is contained in:
Thomas Ricouard 2023-01-19 07:14:38 +01:00
parent 9c532d9448
commit 22c9d51941
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ public class StatusEditorViewModel: ObservableObject {
}
private func processText() {
statusText.addAttributes([.foregroundColor: UIColor(Color.label)],
statusText.addAttributes([.foregroundColor: UIColor(Color.label),
.underlineColor: .clear],
range: NSMakeRange(0, statusText.string.utf16.count))
let hashtagPattern = "(#+[a-zA-Z0-9(_)]{1,})"
let mentionPattern = "(@+[a-zA-Z0-9(_).-]{1,})"