Have you tried to re-access the attributedText without using the DispatchQueue? I have some similar problems with UITextView.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: