Swiftgram/lottie-ios/Classes/PublicHeaders/LOTAnimationView_Compat.h
2017-08-24 14:47:05 -07:00

37 lines
805 B
Objective-C

//
// LOTAnimationView_Compat.h
// Lottie
//
// Created by Oleksii Pavlovskyi on 2/2/17.
// Copyright (c) 2017 Airbnb. All rights reserved.
//
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
#import <UIKit/UIKit.h>
@compatibility_alias LOTView UIView;
#else
#import <AppKit/AppKit.h>
@compatibility_alias LOTView NSView;
typedef NS_ENUM(NSInteger, LOTViewContentMode) {
LOTViewContentModeScaleToFill,
LOTViewContentModeScaleAspectFit,
LOTViewContentModeScaleAspectFill,
LOTViewContentModeRedraw,
LOTViewContentModeCenter,
LOTViewContentModeTop,
LOTViewContentModeBottom,
LOTViewContentModeLeft,
LOTViewContentModeRight,
LOTViewContentModeTopLeft,
LOTViewContentModeTopRight,
LOTViewContentModeBottomLeft,
LOTViewContentModeBottomRight,
};
#endif