AsyncDisplayKit icon indicating copy to clipboard operation
AsyncDisplayKit copied to clipboard

ASTextKitContext.mm(line 62) return nil.

Open adxiaoquan32 opened this issue 5 years ago • 0 comments

amazing job for fixing bugs https://github.com/facebook/AsyncDisplayKit/issues/2894 ! love it. but sorry to report this. when I have a attributedString started with NSTextAttachment, ASTextKitContext.mm line 62 method

UIColor *attributeValue = (UIColor *)[attributedString attribute:NSForegroundColorAttributeName atIndex:limit.location effectiveRange:NULL];

will return nil, it goes using default tintColor attributes instead of attributedString itself. to solve this problem, i have to set NSForegroundColorAttributeName to all attributedString or add a NSForegroundColorAttributeName with empty string at first. another easy way to get it done?

adxiaoquan32 avatar Jul 21 '20 02:07 adxiaoquan32