mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
[ASImageNode] A ASImageNode debug feature showing pixel scaling amount
- shows a red text label overlay on bottom right hand corner of ASImageNodes with pixel scaling factor - import AsyncDisplayKit+Debug.h and enable using [ASImageNode setEnableImageDebugOverlay]
This commit is contained in:
21
AsyncDisplayKit/AsyncDisplayKit+Debug.h
Normal file
21
AsyncDisplayKit/AsyncDisplayKit+Debug.h
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// AsyncDisplayKit+Debug.h
|
||||
// AsyncDisplayKit
|
||||
//
|
||||
// Created by Hannah Troisi on 3/7/16.
|
||||
// Copyright © 2016 Facebook. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "ASImageNode.h"
|
||||
|
||||
@interface ASImageNode (Debug)
|
||||
|
||||
/**
|
||||
* Class method to enable visualization of an ASImageNode's image size. For app debugging purposes only.
|
||||
* @param enabled Specify YES to turn on this debug feature when messaging the ASImageNode class.
|
||||
*/
|
||||
+ (void)setImageDebugEnabled:(BOOL)enable;
|
||||
+ (BOOL)shouldShowImageDebugOverlay;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user