LOTPlatformCompat.h 674 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // LOTPlatformCompat.h
  3. // Lottie
  4. //
  5. // Created by Oleksii Pavlovskyi on 2/2/17.
  6. // Copyright (c) 2017 Airbnb. All rights reserved.
  7. //
  8. #ifndef LOTPlatformCompat_h
  9. #define LOTPlatformCompat_h
  10. #include <TargetConditionals.h>
  11. #if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
  12. #import <UIKit/UIKit.h>
  13. #else
  14. #import <AppKit/AppKit.h>
  15. #import "UIColor.h"
  16. #import "CALayer+Compat.h"
  17. #import "NSValue+Compat.h"
  18. #import "UIBezierPath.h"
  19. NS_INLINE NSString *NSStringFromCGRect(CGRect rect) {
  20. return NSStringFromRect(rect);
  21. }
  22. NS_INLINE NSString *NSStringFromCGPoint(CGPoint point) {
  23. return NSStringFromPoint(point);
  24. }
  25. typedef NSEdgeInsets UIEdgeInsets;
  26. #endif
  27. #endif