mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Reduce copying in ASTextNode2 stack (#1065)
* Remove copying in text stack, make text container have an optional immutable mode * Changelog * Comment * Update CHANGELOG.md * Use new name * Import header
This commit is contained in:
@@ -67,6 +67,9 @@ AS_EXTERN const CGSize ASTextContainerMaxSize;
|
||||
/// Creates a container with the specified path. @param path The path.
|
||||
+ (instancetype)containerWithPath:(nullable UIBezierPath *)path NS_RETURNS_RETAINED;
|
||||
|
||||
/// Mark this immutable, so you get free copies going forward.
|
||||
- (void)makeImmutable;
|
||||
|
||||
/// The constrained size. (if the size is larger than ASTextContainerMaxSize, it will be clipped)
|
||||
@property CGSize size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user