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