Todo AppDelegate to setup tab bar controller, font picker, pencil kit, and file manager

This commit is contained in:
scawful
2024-08-14 00:02:27 -04:00
parent b7a8b3ce54
commit f1bae4e6ab
3 changed files with 37 additions and 9 deletions

View File

@@ -10,13 +10,27 @@
/* iOS in Xcode simulator */
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate, UIDocumentPickerDelegate>
#import <PencilKit/PencilKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate, UIDocumentPickerDelegate, UITabBarControllerDelegate, PKCanvasViewDelegate>
@property (strong, nonatomic) UIWindow *window;
@property UIDocumentPickerViewController *documentPicker;
@property (nonatomic, copy) void (^completionHandler)(NSString *selectedFile);
- (void)PresentDocumentPickerWithCompletionHandler:(void (^)(NSString *selectedFile))completionHandler;
// TODO: Setup a tab bar controller for multiple yaze instances
@property (nonatomic) UITabBarController *tabBarController;
// TODO: Setup a font picker for the text editor and display settings
@property (nonatomic) UIFontPickerViewController *fontPicker;
// TODO: Setup the pencil kit for drawing
@property PKToolPicker *toolPicker;
@property PKCanvasView *canvasView;
// TODO: Setup the file manager for file operations
@property NSFileManager *fileManager;
@end