Hi there,
Seems like AttributedTextView.attributer.setter takes too much time while blocking main thread.

Is there anything we can do to make it faster? Seems like right now, it requires main thread, so I can't simply put in a background thread :(
let userName = "daurenmuratov"
let comment = "\(userName):"
.font(UIFont.systemFont(ofSize: 14, weight: .bold))
.match(userName)
.color(.black)
.makeInteract({ (userLogin) in
print("Login pressed: \(userLogin)")
})
+ (" \(text)")
.font(UIFont.systemFont(ofSize: 14))
.color(.gray)
.matchHashtags.color(.red)
.makeInteract({ (hashtag) in
print("Hashtag pressed: \(hashtag)")
})
.matchMentions
.makeInteract({ (mention) in
print("Mention pressed: \(mention)")
})
.matchLinks
.makeInteract({ (link) in
print("Link pressed \(link)")
})
.setLinkColor(.blue)
textView.attributer = comment
Hi there,
Seems like AttributedTextView.attributer.setter takes too much time while blocking main thread.
Is there anything we can do to make it faster? Seems like right now, it requires main thread, so I can't simply put in a background thread :(