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:
Adlai Holler
2018-08-07 08:32:43 -07:00
committed by GitHub
parent 2bb216b02e
commit 03e6ce0916
4 changed files with 48 additions and 19 deletions

View File

@@ -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;