AsyncDisplayKit is now Texture! LEARN MORE

Texture

Subtree Rasterization

Flattening an entire view hierarchy into a single layer improves performance, but with UIKit, comes with a hit to maintainability and hierarchy-based reasoning.

With all Texture nodes, enabling precompositing is as simple as:

Swift Objective-C
[rootNode enableSubtreeRasterization];
rootNode.enableSubtreeRasterization()


This line will cause the entire node hierarchy from that point on to be rendered into one layer.

Edit on GitHub

← Prev Next →

AltStyle によって変換されたページ (->オリジナル) /