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

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

@adxiaoquan32

Description

@adxiaoquan32

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions