GitToTheHub commented on code in PR #937:
URL:
https://github.com/apache/cordova-plugin-camera/pull/937#discussion_r2603287680
##########
src/ios/CDVCamera.m:
##########
@@ -242,6 +265,38 @@ - (void)showCameraPicker:(NSString*)callbackId
withOptions:(CDVPictureOptions *)
});
}
+// Since iOS 14, we can use PHPickerViewController to select images from the
photo library
+- (void)showPHPicker:(NSString*)callbackId
withOptions:(CDVPictureOptions*)pictureOptions API_AVAILABLE(ios(14))
Review Comment:
I added a compile time check for iOS SDK 14
##########
src/ios/CDVCamera.m:
##########
@@ -898,6 +967,160 @@ - (void)imagePickerControllerReturnImageResult
}
}
+#pragma mark PHPickerViewController related methods iOS 14+
Review Comment:
I added a compile time check for iOS SDK 14
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]