1#ifndef YAZE_APP_CORE_PLATFORM_APP_DELEGATE_H
2#define YAZE_APP_CORE_PLATFORM_APP_DELEGATE_H
4#if defined(__APPLE__) && defined(__MACH__)
6#import <CoreText/CoreText.h>
7#include <TargetConditionals.h>
9#if TARGET_IPHONE_SIMULATOR == 1 || TARGET_OS_IPHONE == 1
11#import <PencilKit/PencilKit.h>
12#import <UIKit/UIKit.h>
14@interface AppDelegate : UIResponder <UIApplicationDelegate,
15 UIDocumentPickerDelegate,
16 UITabBarControllerDelegate,
18@property(strong, nonatomic) UIWindow *window;
20@property UIDocumentPickerViewController *documentPicker;
21@property(nonatomic, copy)
void (^completionHandler)(NSString *selectedFile);
22- (void)PresentDocumentPickerWithCompletionHandler:
23 (
void (^)(NSString *selectedFile))completionHandler;
26@property(nonatomic) UITabBarController *tabBarController;
29@property(nonatomic) UIFontPickerViewController *fontPicker;
32@property PKToolPicker *toolPicker;
33@property PKCanvasView *canvasView;
36@property NSFileManager *fileManager;
40#elif TARGET_OS_MAC == 1
49void yaze_initialize_cocoa();
54void yaze_run_cocoa_app_delegate(
const char *filename);