Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

ASTextKitContext.mm(line 62) return nil. #3356

Open
adxiaoquan32 opened this issue Jul 21, 2020 · 0 comments
Open

ASTextKitContext.mm(line 62) return nil. #3356

adxiaoquan32 opened this issue Jul 21, 2020 · 0 comments

Comments

@adxiaoquan32
Copy link

adxiaoquan32 commented Jul 21, 2020

amazing job for fixing bugs #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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant