Provide default ASTextNode linkAttributeNames.

TextKit machinery automatically applies styling to text marked with the
NSLink attribute, but because ASTextNode is unaware of it, the node's
tap handler doesn't treat NSLinks as links.  Add NSLinkAttributeName to
the default linkAttributeNames property.
This commit is contained in:
Nadine Salter
2014-10-01 15:55:16 -07:00
parent 17fcca19ce
commit aa7b545592
2 changed files with 3 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ typedef NS_ENUM(NSUInteger, ASTextNodeHighlightStyle) {
#pragma mark - Actions
/**
@abstract The set of attribute names to consider links.
@abstract The set of attribute names to consider links. Defaults to NSLinkAttributeName.
*/
@property (nonatomic, copy) NSArray *linkAttributeNames;