mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-06 04:32:06 +00:00
- 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]
28 lines
493 B
Objective-C
28 lines
493 B
Objective-C
//
|
|
// AsyncDisplayKit+Debug.m
|
|
// AsyncDisplayKit
|
|
//
|
|
// Created by Hannah Troisi on 3/7/16.
|
|
// Copyright © 2016 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import "AsyncDisplayKit+Debug.h"
|
|
#import "ASDisplayNode+Subclasses.h"
|
|
#import "ASTextNode.h"
|
|
|
|
static BOOL __enableImageSizeOverlay = NO;
|
|
|
|
@implementation ASImageNode (Debug)
|
|
|
|
+ (void)setImageDebugEnabled:(BOOL)enable;
|
|
{
|
|
__enableImageSizeOverlay = enable;
|
|
}
|
|
|
|
+ (BOOL)shouldShowImageDebugOverlay
|
|
{
|
|
return __enableImageSizeOverlay;
|
|
}
|
|
|
|
@end
|