Clue icon indicating copy to clipboard operation
Clue copied to clipboard

Parse attributed string properties in UIView(CLUViewRecordableAdditions)

Open Geek-1001 opened this issue 7 years ago • 0 comments

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

Geek-1001 avatar Apr 24 '17 17:04 Geek-1001