LOTAnimationView_Compat.h 805 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // LOTAnimationView_Compat.h
  3. // Lottie
  4. //
  5. // Created by Oleksii Pavlovskyi on 2/2/17.
  6. // Copyright (c) 2017 Airbnb. All rights reserved.
  7. //
  8. #if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
  9. #import <UIKit/UIKit.h>
  10. @compatibility_alias LOTView UIView;
  11. #else
  12. #import <AppKit/AppKit.h>
  13. @compatibility_alias LOTView NSView;
  14. typedef NS_ENUM(NSInteger, LOTViewContentMode) {
  15. LOTViewContentModeScaleToFill,
  16. LOTViewContentModeScaleAspectFit,
  17. LOTViewContentModeScaleAspectFill,
  18. LOTViewContentModeRedraw,
  19. LOTViewContentModeCenter,
  20. LOTViewContentModeTop,
  21. LOTViewContentModeBottom,
  22. LOTViewContentModeLeft,
  23. LOTViewContentModeRight,
  24. LOTViewContentModeTopLeft,
  25. LOTViewContentModeTopRight,
  26. LOTViewContentModeBottomLeft,
  27. LOTViewContentModeBottomRight,
  28. };
  29. #endif