mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-06 05:02:54 +00:00
Merge pull request #1245 from rcancro/exposeCurrentScale
Exposing currentScaleFactor
This commit is contained in:
@@ -15,4 +15,9 @@
|
||||
*/
|
||||
@property (nonatomic, copy) NSArray *pointSizeScaleFactors;
|
||||
|
||||
/**
|
||||
@abstract The currently applied scale factor, or 0 if the text node is not being scaled.
|
||||
*/
|
||||
@property (nonatomic, assign, readonly) CGFloat currentScaleFactor;
|
||||
|
||||
@end
|
||||
@@ -79,7 +79,6 @@ static NSString *ASTextNodeTruncationTokenAttributeName = @"ASTextNodeTruncation
|
||||
CGSize _constrainedSize;
|
||||
|
||||
ASTextKitRenderer *_renderer;
|
||||
CGFloat _currentScaleFactor;
|
||||
|
||||
UILongPressGestureRecognizer *_longPressGestureRecognizer;
|
||||
}
|
||||
@@ -245,7 +244,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
.maximumNumberOfLines = _maximumNumberOfLines,
|
||||
.exclusionPaths = _exclusionPaths,
|
||||
.pointSizeScaleFactors = _pointSizeScaleFactors,
|
||||
.currentScaleFactor = _currentScaleFactor,
|
||||
.currentScaleFactor = self.currentScaleFactor,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user