This repository was archived by the owner on Feb 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 206206 * @abstract Indicates that the receiver is finished displaying its subnodes. This method is not called if there are
207207 * no subnodes present.
208208 *
209- * @discussion Subclasses may override this method to be notified when subnode display (asynchronous or synchronous) is
210- * about to begin .
209+ * @discussion Subclasses may override this method to be notified when subnode display (asynchronous or synchronous) has
210+ * completed .
211211 */
212212- (void )subnodeDisplayDidFinish : (ASDisplayNode *)subnode ASDISPLAYNODE_REQUIRES_SUPER;
213213
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ - (void)_initializeInstance
117117
118118 _displaySentinel = [[ASSentinel alloc ] init ];
119119
120+ _pendingDisplayNodes = [[NSMutableSet alloc ] init ];
121+
120122 _flags.isInHierarchy = NO ;
121123 _flags.displaysAsynchronously = YES ;
122124
@@ -1382,7 +1384,11 @@ - (void)displayWillStart
13821384 [_supernode subnodeDisplayWillStart: self ];
13831385
13841386 if (_placeholderImage && _placeholderLayer && self.layer .contents == nil ) {
1387+ [CATransaction begin ];
1388+ [CATransaction setDisableActions: YES ];
13851389 _placeholderLayer.contents = (id )_placeholderImage.CGImage ;
1390+ _placeholderLayer.opacity = 1.0 ;
1391+ [CATransaction commit ];
13861392 [self .layer addSublayer: _placeholderLayer];
13871393 }
13881394}
You can’t perform that action at this time.
0 commit comments