Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse attributed string properties in UIView(CLUViewRecordableAdditions) #7

Open
Geek-1001 opened this issue Apr 24, 2017 · 0 comments

Comments

@Geek-1001
Copy link
Owner

Description

There is a TODO comment in -clue_attributedTextPropertyDictionaryForAttributedString: method in UIView(CLUViewRecordableAdditions) to parse more useful properties from NSAttributedString.

- (NSDictionary *)clue_attributedTextPropertyDictionaryForAttributedString:(NSAttributedString *)attributedText {
    NSMutableDictionary *attributedTextDictionary = [[NSMutableDictionary alloc] init];
    if (attributedText) {
        [attributedTextDictionary clue_setValidObject:[attributedText string] forKey:@"string"];
    }
    // TODO: add Retrieving Attribute Information
    return attributedTextDictionary;
}

Right now Clue parse only string property which most of the time isn't enough.

References

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

No branches or pull requests

1 participant