mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user