mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Change placeholder boolean to time interval
This commit is contained in:
@@ -332,11 +332,11 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
|
||||
@property (nonatomic, assign) BOOL placeholderEnabled;
|
||||
|
||||
/**
|
||||
* @abstract Toggle to fade-out the placeholder when a node's contents are finished displaying.
|
||||
* @abstract Set the time it takes to fade out the placeholder when a node's contents are finished displaying.
|
||||
*
|
||||
* @discussion Defaults to NO.
|
||||
* @discussion Defaults to 0 seconds.
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL placeholderFadesOut;
|
||||
@property (nonatomic, assign) NSTimeInterval placeholderFadeDuration;
|
||||
|
||||
|
||||
/** @name Hit Testing */
|
||||
@@ -535,4 +535,8 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
|
||||
* Convenience method, equivalent to [layer addSublayer:node.layer].
|
||||
*/
|
||||
- (void)addSubnode:(ASDisplayNode *)node;
|
||||
@end
|
||||
@end
|
||||
|
||||
@interface ASDisplayNode (Deprecated)
|
||||
@property (nonatomic, assign) BOOL placeholderFadesOut ASDISPLAYNODE_DEPRECATED;
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user