NSValue+Compat.h 506 B

12345678910111213141516171819202122
  1. //
  2. // Created by Oleksii Pavlovskyi on 2/2/17.
  3. // Copyright (c) 2017 Airbnb. All rights reserved.
  4. //
  5. #include <TargetConditionals.h>
  6. #if !TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR
  7. #import <Foundation/Foundation.h>
  8. @interface NSValue (Compat)
  9. + (NSValue *)valueWithCGRect:(CGRect)rect;
  10. + (NSValue *)valueWithCGPoint:(CGPoint)point;
  11. @property (nonatomic, readonly) CGRect CGRectValue;
  12. @property(nonatomic, readonly) CGPoint CGPointValue;
  13. @property (nonatomic, readonly) CGSize CGSizeValue;
  14. @end
  15. #endif