Improve setting special properties for certain classes directly to the UIView

- Remove duplicated code in ASCollectionNode and ASTableNode
- Fix setting the pending state to the view if applying the pending state to the view
This commit is contained in:
Michael Schneider
2016-04-19 10:50:22 -07:00
parent 8d20321d67
commit 3793dc024e
7 changed files with 32 additions and 59 deletions

View File

@@ -24,7 +24,7 @@
// Supports all of the properties included in the ASDisplayNodeViewProperties protocol
- (void)applyToView:(UIView *)view setFrameDirectly:(BOOL)setFrameDirectly;
- (void)applyToView:(UIView *)view withSpecialPropertiesHandling:(BOOL)setFrameDirectly;
- (void)applyToLayer:(CALayer *)layer;
+ (_ASPendingState *)pendingViewStateFromLayer:(CALayer *)layer;