mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Build ChatListUI
This commit is contained in:
28
submodules/LegacyComponents/Sources/NSValue+JNWAdditions.h
Normal file
28
submodules/LegacyComponents/Sources/NSValue+JNWAdditions.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
typedef NS_ENUM(NSInteger, JNWValueType) {
|
||||
JNWValueTypeNumber,
|
||||
JNWValueTypePoint,
|
||||
JNWValueTypeSize,
|
||||
JNWValueTypeRect,
|
||||
JNWValueTypeAffineTransform,
|
||||
JNWValueTypeTransform3D,
|
||||
JNWValueTypeUnknown
|
||||
};
|
||||
|
||||
@interface NSValue (JNWAdditions)
|
||||
|
||||
- (CGRect)jnw_rectValue;
|
||||
- (CGSize)jnw_sizeValue;
|
||||
- (CGPoint)jnw_pointValue;
|
||||
- (CGAffineTransform)jnw_affineTransformValue;
|
||||
|
||||
+ (NSValue *)jnw_valueWithRect:(CGRect)rect;
|
||||
+ (NSValue *)jnw_valueWithSize:(CGSize)size;
|
||||
+ (NSValue *)jnw_valueWithPoint:(CGPoint)point;
|
||||
+ (NSValue *)jnw_valueWithAffineTransform:(CGAffineTransform)transform;
|
||||
|
||||
- (JNWValueType)jnw_type;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user