mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-03 03:40:33 +00:00
Rename positioning block to sport as namespace
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
#import "ASTextKitRenderer.h"
|
||||
|
||||
typedef void (^ck_text_component_index_block_t)(NSUInteger characterIndex,
|
||||
typedef void (^as_text_component_index_block_t)(NSUInteger characterIndex,
|
||||
CGRect glyphBoundingRect,
|
||||
BOOL *stop);
|
||||
|
||||
@@ -79,7 +79,7 @@ typedef NS_ENUM(NSUInteger, ASTextKitRendererMeasureOption) {
|
||||
Triggers initialization of textkit components, truncation, and sizing.
|
||||
*/
|
||||
- (void)enumerateTextIndexesAtPosition:(CGPoint)position
|
||||
usingBlock:(ck_text_component_index_block_t)block;
|
||||
usingBlock:(as_text_component_index_block_t)block;
|
||||
|
||||
/**
|
||||
Returns the single text index whose glyph's centroid is closest to the given position.
|
||||
|
||||
@@ -258,7 +258,7 @@ static const CGFloat ASTextKitRendererTextCapHeightPadding = 1.3;
|
||||
return properGlyphRect;
|
||||
}
|
||||
|
||||
- (void)enumerateTextIndexesAtPosition:(CGPoint)externalPosition usingBlock:(ck_text_component_index_block_t)block
|
||||
- (void)enumerateTextIndexesAtPosition:(CGPoint)externalPosition usingBlock:(as_text_component_index_block_t)block
|
||||
{
|
||||
// This method is a little complex because it has to call out to client code from inside an enumeration that needs
|
||||
// to achieve a lock on the textkit components. It cannot call out to client code from within that lock so we just
|
||||
|
||||
Reference in New Issue
Block a user