Change assumed value for text node highlighting delegate method to YES and don't consult it unless highlighting.

This commit is contained in:
Adlai Holler
2015-12-03 20:52:02 -08:00
parent 61f2f73b16
commit 835acd6a25
2 changed files with 14 additions and 9 deletions

View File

@@ -245,7 +245,7 @@ typedef NS_ENUM(NSUInteger, ASTextNodeHighlightStyle) {
@param attribute The attribute that was tapped. Will not be nil.
@param value The value of the tapped attribute.
@param point The point within textNode, in textNode's coordinate system, that was touched to trigger a highlight.
@discussion If not implemented, the default value is NO.
@discussion If not implemented, the default value is YES.
@return YES if the entity attribute should be a link, NO otherwise.
*/
- (BOOL)textNode:(ASTextNode *)textNode shouldHighlightLinkAttribute:(NSString *)attribute value:(id)value atPoint:(CGPoint)point;