Did you fix it? Seeing the same error with Xcode 12.5
Post
Replies
Boosts
Views
Activity
Actually it is even enough to add baselineOffset and set it to 0
attributedString.addAttribute(NSAttributedString.Key.baselineOffset, value: 0, range: NSMakeRange(0,length))