Clue
Clue copied to clipboard
Parse attributed string properties in UIView(CLUViewRecordableAdditions)
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.