#include <TargetConditionals.h>
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0 && !(TARGET_IPHONE_SIMULATOR || TARGET_OS_SIMULATOR)
#define HAS_METAL_SDK 1
#else
#define HAS_METAL_SDK 0
#endif
#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>
#if HAS_METAL_SDK
#import <Metal/Metal.h>
#endif
#if HAS_METAL_SDK
@interface HalideView : UIView
#else
@interface HalideView : UIImageView
#endif
@property CGPoint touch_position;
@property bool touch_active;
@property UITextView *outputLog;
#if HAS_METAL_SDK
@property bool use_metal;
@property (nonatomic, readonly) id <MTLDevice> device;
@property (nonatomic, readonly) id <MTLCommandQueue> commandQueue;
#endif
- (void)initiateRender;
@end