From d9a245b80b031e4ef95672381fbeee7979bdf745 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Tue, 2 May 2023 18:40:50 +0530 Subject: [PATCH] Updated delegate properties to be nullable for swift bridging --- .../vision/image_classifier/sources/MPPImageClassifierOptions.h | 2 +- .../vision/object_detector/sources/MPPObjectDetectorOptions.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mediapipe/tasks/ios/vision/image_classifier/sources/MPPImageClassifierOptions.h b/mediapipe/tasks/ios/vision/image_classifier/sources/MPPImageClassifierOptions.h index 92f8ebc5d..b943dd30d 100644 --- a/mediapipe/tasks/ios/vision/image_classifier/sources/MPPImageClassifierOptions.h +++ b/mediapipe/tasks/ios/vision/image_classifier/sources/MPPImageClassifierOptions.h @@ -63,7 +63,7 @@ NS_SWIFT_NAME(ImageClassifierOptions) * to receive the results of asynchronous classification on images (i.e, when `runningMode = * MPPRunningModeLiveStream`). */ -@property(nonatomic, weak) id imageClassifierDelegate; +@property(nonatomic, weak, nullable) id imageClassifierDelegate; /** * The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults diff --git a/mediapipe/tasks/ios/vision/object_detector/sources/MPPObjectDetectorOptions.h b/mediapipe/tasks/ios/vision/object_detector/sources/MPPObjectDetectorOptions.h index 8075ee5cc..6d5eeda4e 100644 --- a/mediapipe/tasks/ios/vision/object_detector/sources/MPPObjectDetectorOptions.h +++ b/mediapipe/tasks/ios/vision/object_detector/sources/MPPObjectDetectorOptions.h @@ -60,7 +60,7 @@ NS_SWIFT_NAME(ObjectDetectorOptions) * to receive the results of performing asynchronous object detection on images (i.e, when * `runningMode` = `MPPRunningModeLiveStream`). */ -@property(nonatomic, weak) id objectDetectorDelegate; +@property(nonatomic, weak, nullable) id objectDetectorDelegate; /** * The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults