react-native-navigation的迁移库

Color+Interpolation.h 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // Color+Interpolation.h
  3. //
  4. // Created by Leo Natan on 01/10/2016.
  5. // Copyright © 2016 Leo Natan. All rights reserved.
  6. //
  7. #if __has_include(<UIKit/UIKit.h>) || __has_include(<AppKit/AppKit.h>)
  8. #import "LNInterpolable.h"
  9. #if __has_include(<UIKit/UIKit.h>)
  10. #import <UIKit/UIKit.h>
  11. #else
  12. #import <AppKit/AppKit.h>
  13. #endif
  14. /**
  15. Interpolate using the LAB color space for optimal quality. This constant is equal to @c LNUseDefaultInterpolationBehavior.
  16. */
  17. extern LNInterpolationBehavior const LNInterpolationBehaviorUseLABColorSpace;
  18. /**
  19. Interpolate using the RGB color space.
  20. */
  21. extern LNInterpolationBehavior const LNInterpolationBehaviorUseRGBColorSpace;
  22. /**
  23. Interpolates between colors.
  24. By default, colors are interpolated in the Lab color space for optimal quality at the expense of some performance. Use @c LNUseRGBInterpolationBehavior for better performance but suboptimal quality.
  25. */
  26. #if __has_include(<UIKit/UIKit.h>)
  27. @interface UIColor (LNInterpolation) <LNInterpolable> @end
  28. #else
  29. @interface NSColor (LNInterpolation) <LNInterpolable> @end
  30. #endif
  31. #endif