feat: Make Frame Processor Plugins object-oriented on iOS as well (#1496)

* feat: Make Frame Processor Plugins object-oriented on iOS as well

* Add Plugin in AppDelegate
This commit is contained in:
Marc Rousavy
2023-02-27 11:18:03 +01:00
committed by GitHub
parent 61f19df500
commit 622d3830f1
13 changed files with 157 additions and 142 deletions

View File

@@ -1,6 +1,8 @@
#import "AppDelegate.h"
#import <React/RCTBundleURLProvider.h>
#import "VisionCameraExample-Swift.h"
#import <VisionCamera/FrameProcessorPlugin.h>
@implementation AppDelegate
@@ -10,6 +12,8 @@
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
[FrameProcessorPlugin registerPlugin:[[ExamplePluginSwift alloc] init]];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}