Updated delegate properties to be nullable for swift bridging

This commit is contained in:
Prianka Liz Kariat 2023-05-02 18:40:50 +05:30
parent e61e5f2bf7
commit d9a245b80b
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ NS_SWIFT_NAME(ImageClassifierOptions)
* to receive the results of asynchronous classification on images (i.e, when `runningMode = * to receive the results of asynchronous classification on images (i.e, when `runningMode =
* MPPRunningModeLiveStream`). * MPPRunningModeLiveStream`).
*/ */
@property(nonatomic, weak) id<MPPImageClassifierDelegate> imageClassifierDelegate; @property(nonatomic, weak, nullable) id<MPPImageClassifierDelegate> imageClassifierDelegate;
/** /**
* The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults * The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults

View File

@ -60,7 +60,7 @@ NS_SWIFT_NAME(ObjectDetectorOptions)
* to receive the results of performing asynchronous object detection on images (i.e, when * to receive the results of performing asynchronous object detection on images (i.e, when
* `runningMode` = `MPPRunningModeLiveStream`). * `runningMode` = `MPPRunningModeLiveStream`).
*/ */
@property(nonatomic, weak) id<MPPObjectDetectorDelegate> objectDetectorDelegate; @property(nonatomic, weak, nullable) id<MPPObjectDetectorDelegate> objectDetectorDelegate;
/** /**
* The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults * The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults