mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Add ability to customize NSLayoutManager and NSTextStorage when created in the ASTextKitContext
This commit is contained in:
@@ -213,6 +213,16 @@ typedef NS_ENUM(NSUInteger, ASTextNodeHighlightStyle) {
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL passthroughNonlinkTouches;
|
||||
|
||||
#pragma mark - ASTextKit Customization
|
||||
/**
|
||||
A block to provide a hook to provide a custom NSLayoutManager to the ASTextKitRenderer
|
||||
*/
|
||||
@property (nonatomic, copy) NSLayoutManager * (^layoutManagerCreationBlock)(void);
|
||||
|
||||
/**
|
||||
A block to provide a hook to provide a NSTextStorage to the Text Kit's layout manager.
|
||||
*/
|
||||
@property (nonatomic, copy) NSTextStorage * (^textStorageCreationBlock)(NSAttributedString *attributedString);
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user